Tournament Models¶
Tournament models are provided for tournament sets (Tournaments) as well
as individual tournaments (Tournament). A Tournaments instance can be
used to generate individual Tournament instances, which can then be used to
generate Match instances associated with the respective tournament. See
Match Detail Models for more details on Match instances.
Match instances can then be used to create Telemetry instances.
See Telemetry Models for more details on telemetry.
Note
- Tournament resources must use the
pc-tournamentshard.
-
class
chicken_dinner.models.Tournaments(pubg, shard='pc-tournament')[source]¶ Tournaments model.
An object encapsulating metadata about a set of PUBG tournaments.
Parameters: pubg – an instance of the class chicken_dinner.pubgapi.PUBG-
data¶ The data payload of the repsonse.
-
ids¶ The tournament ids.
-
meta¶ The meta information attached to the response.
-
response= None¶ The API response for this object.
-
shard¶ The shard for these tournaments.
-
url¶ The URL for this tournaments resource.
-
-
class
chicken_dinner.models.Tournament(pubg, tournament_id, created_at=None, shard='pc-tournament')[source]¶ Tournament model.
An object encapsulating metadata about a PUBG tournament.
Parameters: - pubg – an instance of the class
chicken_dinner.pubgapi.PUBG - tournament_id (str) – a tournament id
-
created_at¶ The time at which this tournament resource was created.
-
data¶ The data payload of the response.
-
id¶ The tournament id.
-
match_ids¶ The match ids associated with this tournament.
-
meta¶ The meta information attached to the response.
-
response¶ The response for this tournament resource.
-
shard¶ The shard for these tournaments.
-
url¶ The URL for this tournaments resource.
- pubg – an instance of the class