masterblaster.match#

Module Contents#

Classes#

MatchSettings

GameSettings

CompetitionStatus

MatchStatus

MatchGameServer

MatchConnectionInfo

Match

Class holding all information about a match

class masterblaster.match.MatchSettings(useVeto: bool = None, useVetoSide: bool = None, useBestOfX: bool = None, mapVetoId: Optional[str] = None, numberOfMaps: int = None, isVetoCompleted: bool = None, isTwitchStreamingEnabled: bool = None, twitchStreamingUrl: Optional[str] = None, enableForfeitTimer: bool = None, timeToReadyUpBeforeForfeitInSeconds: int = None, scoreConfigId: Optional[str] = None)[source]#
Parameters:
  • useVeto (bool) –

  • useVetoSide (bool) –

  • useBestOfX (bool) –

  • mapVetoId (Optional[str]) –

  • numberOfMaps (int) –

  • isVetoCompleted (bool) –

  • isTwitchStreamingEnabled (bool) –

  • twitchStreamingUrl (Optional[str]) –

  • enableForfeitTimer (bool) –

  • timeToReadyUpBeforeForfeitInSeconds (int) –

  • scoreConfigId (Optional[str]) –

class masterblaster.match.GameSettings(locationId: str = None, useAutoForfeit: bool = None, forfeitTimeoutInSeconds: int = None, customConfigFile: Optional[str] = None, plugins: list = None, insecureServer: bool = None)[source]#
Parameters:
  • locationId (str) –

  • useAutoForfeit (bool) –

  • forfeitTimeoutInSeconds (int) –

  • customConfigFile (Optional[str]) –

  • plugins (list) –

  • insecureServer (bool) –

class masterblaster.match.CompetitionStatus(status: int = 0)[source]#
Parameters:

status (int) –

class masterblaster.match.MatchStatus(status: int = 0)[source]#
Parameters:

status (int) –

class masterblaster.match.MatchGameServer(serverId: str = None, host: str = None, port: int = None, usedAt: Optional[datetime.datetime] = None)[source]#
Parameters:
  • serverId (str) –

  • host (str) –

  • port (int) –

  • usedAt (Optional[datetime.datetime]) –

class masterblaster.match.MatchConnectionInfo(host: str = None, port: int = None, paused: bool = None, status: int = None, readyAt: datetime.datetime = None, location: str = None, password: str = None, serverId: str = None, launchUrl: str = None, failedReason: str = None, launchGotvUrl: str = None, shutdownDelay: int = None, usedGameServers: list[dict] = [{}], connectionString: str = None, gotvConnectionString: str = None)[source]#
Parameters:
  • host (str) –

  • port (int) –

  • paused (bool) –

  • status (int) –

  • readyAt (datetime.datetime) –

  • location (str) –

  • password (str) –

  • serverId (str) –

  • launchUrl (str) –

  • failedReason (str) –

  • launchGotvUrl (str) –

  • shutdownDelay (int) –

  • usedGameServers (list[dict]) –

  • connectionString (str) –

  • gotvConnectionString (str) –

class masterblaster.match.Match(competitionStatus: int, competitionFormat: int, competitionName: str, parentLeagueId: str, parentLeagueName: str, parentLeagueGroupId: str, parentLeagueSortOrder: Optional[str], teams: list[dict], series: list, startId: Optional[str], competitionId: str, roundIndex: int, matchIndex: int, name: str, game: int, gameId: str, status: int, statusChangedAt: Optional[datetime.datetime], settings: dict, matchType: int, type: int, format: int, enteredPostgameAt: Optional[datetime.datetime], completedAt: Optional[datetime.datetime], failedReason: Optional[str], pauseReason: Optional[str], pausedBy: Optional[str], pausedAt: Optional[datetime.datetime], markForDeletion: bool, isMatchReschedulingEnabled: bool, lastPossibleMatchRescheduleDate: Optional[datetime.datetime], matchScheduleProposals: list, startingAt: Optional[datetime.datetime], startedAt: Optional[datetime.datetime], createdBy: str, teamScores: list, connectionInfo: dict, gameSettings: dict, hasValidTeams: bool, playerIds: list, teamIds: list, hasForfeited: bool, hasDisqualified: bool, forfeitedOrDisqualified: bool, id: str, createdAt: datetime.datetime)[source]#

Class holding all information about a match

Parameters:
  • competitionStatus (int) –

  • competitionFormat (int) –

  • competitionName (str) –

  • parentLeagueId (str) –

  • parentLeagueName (str) –

  • parentLeagueGroupId (str) –

  • parentLeagueSortOrder (Optional[str]) –

  • teams (list[dict]) –

  • series (list) –

  • startId (Optional[str]) –

  • competitionId (str) –

  • roundIndex (int) –

  • matchIndex (int) –

  • name (str) –

  • game (int) –

  • gameId (str) –

  • status (int) –

  • statusChangedAt (Optional[datetime.datetime]) –

  • settings (dict) –

  • matchType (int) –

  • type (int) –

  • format (int) –

  • enteredPostgameAt (Optional[datetime.datetime]) –

  • completedAt (Optional[datetime.datetime]) –

  • failedReason (Optional[str]) –

  • pauseReason (Optional[str]) –

  • pausedBy (Optional[str]) –

  • pausedAt (Optional[datetime.datetime]) –

  • markForDeletion (bool) –

  • isMatchReschedulingEnabled (bool) –

  • lastPossibleMatchRescheduleDate (Optional[datetime.datetime]) –

  • matchScheduleProposals (list) –

  • startingAt (Optional[datetime.datetime]) –

  • startedAt (Optional[datetime.datetime]) –

  • createdBy (str) –

  • teamScores (list) –

  • connectionInfo (dict) –

  • gameSettings (dict) –

  • hasValidTeams (bool) –

  • playerIds (list) –

  • teamIds (list) –

  • hasForfeited (bool) –

  • hasDisqualified (bool) –

  • forfeitedOrDisqualified (bool) –

  • id (str) –

  • createdAt (datetime.datetime) –

get_teams() list[masterblaster.team.Team][source]#
Return type:

list[masterblaster.team.Team]

get_date_and_time() datetime.datetime[source]#
Return type:

datetime.datetime

get_game_settings() GameSettings[source]#
Return type:

GameSettings

get_connection_info() Optional[MatchConnectionInfo][source]#
Return type:

Optional[MatchConnectionInfo]

get_match_settings() MatchSettings[source]#
Return type:

MatchSettings

get_match_status() MatchStatus[source]#
Return type:

MatchStatus

get_competition_status() CompetitionStatus[source]#
Return type:

CompetitionStatus