Show / Hide Table of Contents

Class CotdResource

Cup of the day info and leaderboards

Inheritance
System.Object
Hawf.ApiRequestBuilder<CotdResource>
Hawf.Client.ApiBase<CotdResource>
TrackmaniaIo.ApiClient.Resources.TmIoApiBase<CotdResource>
CotdResource
Namespace: TrackmaniaIo.ApiClient.Resources
Assembly: TrackmaniaIo.ApiClient.dll
Syntax
public class CotdResource : TmIoApiBase<CotdResource>

Constructors

| Improve this Doc View Source

CotdResource(String, String, String)

Declaration
public CotdResource(string projectName, string contact, string apiKey = null)
Parameters
Type Name Description
System.String projectName
System.String contact
System.String apiKey

Methods

| Improve this Doc View Source

GetCotdListAsync(Int32)

Get a list of latest COTD competitions.

Declaration
public Task<TmIoCotdCompetitionList> GetCotdListAsync(int offset = 0)
Parameters
Type Name Description
System.Int32 offset

Offset from latest COTD to get the list from

Returns
Type Description
Task<TmIoCotdCompetitionList>
| Improve this Doc View Source

GetTotalPlayedLeaderboardAsync(Boolean, Int32)

Get the total played leaderboard.

Declaration
public Task<TmIoCotdLeaderboard> GetTotalPlayedLeaderboardAsync(bool includeReruns = false, int offset = 0)
Parameters
Type Name Description
System.Boolean includeReruns

Whether to include cotd re-runs

System.Int32 offset

Offset from position 0

Returns
Type Description
Task<TmIoCotdLeaderboard>
| Improve this Doc View Source

GetWinsLeaderboardAsync(Boolean, Int32)

Get the wins leaderboard.

Declaration
public Task<TmIoCotdLeaderboard> GetWinsLeaderboardAsync(bool includeReruns = false, int offset = 0)
Parameters
Type Name Description
System.Boolean includeReruns

Whether to include cotd re-runs

System.Int32 offset

Offset from position 0

Returns
Type Description
Task<TmIoCotdLeaderboard>
| Improve this Doc View Source

GetWinStreakLeaderboardAsync(Boolean, Int32)

Get the win-streak leaderboard.

Declaration
public Task<TmIoCotdLeaderboard> GetWinStreakLeaderboardAsync(bool includeReruns = false, int offset = 0)
Parameters
Type Name Description
System.Boolean includeReruns

Whether to include cotd re-runs

System.Int32 offset

Offset from position 0

Returns
Type Description
Task<TmIoCotdLeaderboard>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾