Class TotdResource
Track of the Day
Inheritance
System.Object
Hawf.ApiRequestBuilder<TotdResource>
Hawf.Client.ApiBase<TotdResource>
TrackmaniaIo.ApiClient.Resources.TmIoApiBase<TotdResource>
TotdResource
Namespace: TrackmaniaIo.ApiClient.Resources
Assembly: TrackmaniaIo.ApiClient.dll
Syntax
public class TotdResource : TmIoApiBase<TotdResource>
Constructors
| Improve this Doc View SourceTotdResource(String, String, TmIoApi, String)
Declaration
public TotdResource(string projectName, string contact, TmIoApi tmIoApi, string apiKey = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | projectName | |
System.String | contact | |
TmIoApi | tmIoApi | |
System.String | apiKey |
Methods
| Improve this Doc View SourceGetMonthAsync(Int32)
Get a month's list of TOTDs.
Declaration
public Task<TmIoTotdMonth> GetMonthAsync(int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | offset | Month offset from current month. |
Returns
Type | Description |
---|---|
Task<TmIoTotdMonth> |
GetTodayMapIdAsync()
Get the identifiers for the current TOTD.
Declaration
public Task<TmIoMapId> GetTodayMapIdAsync()
Returns
Type | Description |
---|---|
Task<TmIoMapId> |
GetTotdAsync()
Get map info of current TOTD.
Declaration
public async Task<TmIoMapInfo> GetTotdAsync()
Returns
Type | Description |
---|---|
Task<TmIoMapInfo> |