Use the Info class to represent Battlefield game server data
The
opengsq.responses.battlefield.Info class represents detailed information about a Battlefield game server. It contains both required and optional properties describing the server's state, configuration, and location.from opengsq.responses.battlefield import Info
# Example of the properties available in the Info class:
# Required:
# - hostname_ (str): Server hostname
# - num_players_ (int): Current player count
# - max_players_ (int): Maximum player capacity
# - game_type_ (str): Type of game
# - map_ (str): Current map
# - rounds_played_ (int): Rounds played
# - rounds_total_ (int): Total rounds
# - teams_ (list[float]): List of teams
# - target_score_ (int): Target score
# - status_ (str): Game status
# - ranked_ (bool): Ranked status
# - punk_buster_ (bool): PunkBuster enabled
# - password_ (bool): Password required
# - uptime_ (int): Server uptime
# - round_time_ (int): Round time
# Optional:
# - mod_ (str | None): Game mod
# - ip_port_ (str | None): IP port
# - punk_buster_version_ (str | None): PunkBuster version
# - join_queue_ (bool | None): Join queue enabled
# - region_ (str | None): Server region
# - ping_site_ (str | None): Ping site
# - country_ (str | None): Server country
# - blaze_player_count_ (int | None): Blaze player count
# - blaze_game_state_ (str | None): Blaze game state
# - quick_match_ (bool | None): Quick match enabled