rankade.models.Match

Module Contents

Classes

Match

Matches

Represents a list of match objects returned by the Rankade server. Individual match objects returned by the server can be accessed in the same way as a regular list.

API

class Match[source]

Bases: rankade.models.Base.RankadeObject

weight: str = None
weightLabel: str = None
notes: str = None
id: str = None
externalId: str = None
date: datetime = None
registrationDate: datetime = None
number: int = None
summary: str = None
type: str = None
draw: bool = None
game: Game = None
factions: Factions = None
__post_init__()[source]
property is_draw: bool
property winning_factions: List[Faction]
property winning_players: List[Player]
property players: Players
property player_ids: List[str]
class Matches(initlist=None)[source]

Bases: rankade.models.Base.Page[rankade.models.Match.Match]

Represents a list of match objects returned by the Rankade server. Individual match objects returned by the server can be accessed in the same way as a regular list.

Initialization

totalMatches: int = None

Total matches on all pages.

_content_class: ClassVar[Type[RankadeObject]] = None

Classvar to allow the an object in the list to be created from a dict returned from the server.

all_players() Players[source]

Returns all players from all factions of all matches.