# Spectator

Module: `pyot.models.lol.spectator`

### *class* `CurrentGame`

Type: `PyotCore`

Extends:

* `pyot.models.lol.spectator.FeaturedGameData`

Definitions:

* `__init__` -> `None`
  * `summoner_id`: `str = empty`
  * `platform`: `str = models.lol.DEFAULT_PLATFORM`

Endpoints:

* `spectator_v4_current_game`: `['summoner_id']`

Attributes:

* `id` -> `int`
* `type` -> `str`
* `mode` -> `str`
* `start_time_millis` -> `int`
* `length_secs` -> `int`
* `map_id` -> `int`
* `platform` -> `str`
* `queue_id` -> `int`
* `observers_key` -> `str`
* `teams` -> `List[pyot.models.lol.spectator.CurrentGameTeamData]`
* `summoner_id` -> `str`

Properties:

* *property* `banned_champions` -> `List[pyot.models.lol.spectator.CurrentGameBansData]`
* *property* `blue_team` -> `pyot.models.lol.spectator.CurrentGameTeamData`
* *property* `participants` -> `List[pyot.models.lol.spectator.CurrentGameParticipantData]`
* *property* `red_team` -> `pyot.models.lol.spectator.CurrentGameTeamData`
* *property* `summoner` -> `Summoner`

### *class* `FeaturedGames`

Type: `PyotCore`

Definitions:

* `__init__` -> `None`
  * `platform`: `str = models.lol.DEFAULT_PLATFORM`
* `__iter__` -> `Iterator[pyot.models.lol.spectator.FeaturedGameData]`
* `__len__` -> `int`

Endpoints:

* `spectator_v4_featured_games`: `[]`

Attributes:

* `games` -> `List[pyot.models.lol.spectator.FeaturedGameData]`
* `refresh_interval_secs` -> `int`

Properties:

* *property* `refresh_interval` -> `datetime.timedelta`

### *class* `CurrentGameBansData`

Type: `PyotStatic`

Attributes:

* `pick_turn` -> `int`
* `champion_id` -> `int`
* `team_id` -> `int`

Properties:

* *property* `champion` -> `Champion`
* *property* `meraki_champion` -> `MerakiChampion`

### *class* `CurrentGameParticipantCustomizationData`

Type: `PyotStatic`

Attributes:

* `category` -> `str`
* `content` -> `str`

### *class* `CurrentGameParticipantData`

Type: `PyotStatic`

Attributes:

* `team_id` -> `int`
* `champion_id` -> `int`
* `profile_icon_id` -> `int`
* `is_bot` -> `bool`
* `summoner_name` -> `str`
* `summoner_id` -> `str`
* `spell_ids` -> `List[int]`
* `rune_ids` -> `List[int]`
* `rune_main_style` -> `int`
* `rune_sub_style` -> `int`
* `game_customization_objects` -> `List[pyot.models.lol.spectator.CurrentGameParticipantCustomizationData]`
* `position` -> `str`

Properties:

* *property* `champion` -> `Champion`
* *property* `meraki_champion` -> `MerakiChampion`
* *property* `profile_icon` -> `ProfileIcon`
* *property* `runes` -> `List[ForwardRef(Rune)]`
* *property* `spells` -> `List[ForwardRef(Spell)]`
* *property* `summoner` -> `Summoner`

### *class* `CurrentGameTeamData`

Type: `PyotStatic`

Attributes:

* `id` -> `int`
* `bans` -> `List[pyot.models.lol.spectator.CurrentGameBansData]`
* `participants` -> `List[pyot.models.lol.spectator.CurrentGameParticipantData]`

### *class* `FeaturedGameData`

Type: `PyotStatic`

Attributes:

* `id` -> `int`
* `type` -> `str`
* `mode` -> `str`
* `start_time_millis` -> `int`
* `length_secs` -> `int`
* `map_id` -> `int`
* `platform` -> `str`
* `queue_id` -> `int`
* `observers_key` -> `str`
* `teams` -> `List[pyot.models.lol.spectator.FeaturedGameTeamData]`

Properties:

* *property* `banned_champions` -> `List[pyot.models.lol.spectator.CurrentGameBansData]`
* *property* `blue_team` -> `pyot.models.lol.spectator.FeaturedGameTeamData`
* *property* `length` -> `datetime.timedelta`
* *property* `participants` -> `List[pyot.models.lol.spectator.FeaturedGameParticipantData]`
* *property* `red_team` -> `pyot.models.lol.spectator.FeaturedGameTeamData`
* *property* `start_time` -> `datetime.datetime`

### *class* `FeaturedGameParticipantData`

Type: `PyotStatic`

Attributes:

* `team_id` -> `int`
* `champion_id` -> `int`
* `profile_icon_id` -> `int`
* `is_bot` -> `bool`
* `summoner_name` -> `str`
* `spell_ids` -> `List[int]`
* `position` -> `str`

Properties:

* *property* `champion` -> `Champion`
* *property* `meraki_champion` -> `MerakiChampion`
* *property* `profile_icon` -> `ProfileIcon`
* *property* `spells` -> `List[ForwardRef(Spell)]`
* *property* `summoner` -> `Summoner`

### *class* `FeaturedGameTeamData`

Type: `PyotStatic`

Attributes:

* `id` -> `int`
* `bans` -> `List[pyot.models.lol.spectator.CurrentGameBansData]`
* `participants` -> `List[pyot.models.lol.spectator.FeaturedGameParticipantData]`
