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-tournament shard.

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

property data

The data payload of the repsonse.

property ids

The tournament ids.

property meta

The meta information attached to the response.

response = None

The API response for this object.

property shard

The shard for these tournaments.

property 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
property created_at

The time at which this tournament resource was created.

property data

The data payload of the response.

get_matches()[source]

Get a list of match objects for the tournament matches.

property id

The tournament id.

property match_ids

The match ids associated with this tournament.

property meta

The meta information attached to the response.

property response

The response for this tournament resource.

property shard

The shard for these tournaments.

property url

The URL for this tournaments resource.