ChgkRating class
Dart wrapper client for the competitive What? Where? When? rating WebAPIRating
In order to start using this wrapper create an instance of this class
ChgkRating chgkRating = ChgkRating();
After initializing chgkRating you can request player data from the server by calling
Player? player = await chgkRating.getPlayerById(17579);
Constructors
- ChgkRating()
-
factory
- ChgkRating.init(Dio _dio)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPlayerBy(
{String? name, String? surname}) → Future< Iterable< Player> > - Searches for players Player on server.
-
getPlayerById(
int playerId) → Future< Player> -
Requests
Player
object from server. -
getPlayerTeamList(
int playerId) → Future< Iterable< PlayerTeam> > - Requests player teams PlayerTeam list from server.
-
getPlayerTournamentList(
int playerId) → Future< Iterable< PlayerTournament> > - Requests player tournaments PlayerTournament list from server.
-
getTeamBy(
{String? name}) → Future< Iterable< Team> > - Searches for team Team on server.
-
getTeamById(
int teamId) → Future< Team> -
Requests
Team
object from server. -
getTeamPlayersList(
int teamId) → Future< Iterable< PlayerTeam> > - Requests team players PlayerTeam list from server.
-
getTeamTournamentList(
int teamId) → Future< Iterable< PlayerTournament> > - Requests historical team tournament PlayerTournament from server.
-
getTournamentAppeals(
int tournamentId) → Future< Iterable< TournamentAppeals> > -
Requests tournament appeal questions
TournamentAppeals
from server. -
getTournamentBy(
{String? name, String? typeName}) → Future< Iterable< Tournament> > - Searches for tournament Tournament on server.
-
getTournamentDetails(
int tournamentId) → Future< Tournament> -
Requests tournament details
Tournament
from server. -
getTournamentRequests(
int tournamentId) → Future< Iterable< TournamentRequests> > -
Requests tournament team requests
TournamentRequests
from server. -
getTournamentResults(
int tournamentId) → Future< Iterable< TournamentResults> > -
Requests tournament results
TournamentResults
from server. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postToken(
String email, String password) → Future< TokenResponse?> -
Requests jwt token
TokenResponse
from server. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited