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

The time at which this tournament resource was created.

data

The data payload of the response.

get_matches()[source]

Get a list of match objects for the tournament matches.

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.