Source code for wow.models.realm

 1"""Models for the Realm API.
 2
 3Blizzard has not announced or documented a Forever realm API. Realm has not been recorded live for this package: the
 4realm index has answered 404 on every region since launch. This shape comes from community probing
 5(https://mhuijskens.com/WoWForever/Api/), not from a recorded live response.
 6"""
 7
 8from wow.models._common import Document, IdName, Link, LocalizedString, Model, Ref, TypedName
 9
10__all__ = ["Realm", "RealmIndex", "RealmRef", "RealmSearchData"]
11
12
[docs] 13class RealmRef(Ref): 14 """A realm index entry: id, name, link and slug. 15 16 Shape from community probing; Blizzard has not documented it. 17 """ 18 19 slug: str
20 21
[docs] 22class RealmIndex(Document): 23 """Every realm. 24 25 Shape from community probing; Blizzard has not documented it. 26 """ 27 28 realms: tuple[RealmRef, ...]
29 30
[docs] 31class Realm(Document): 32 """One realm: its ruleset, locale, timezone and connected realm. 33 34 Shape from community probing; Blizzard has not documented it. 35 """ 36 37 id: int 38 region: IdName 39 connected_realm: Link 40 name: str 41 category: str 42 locale: str 43 timezone: str 44 type: TypedName 45 is_tournament: bool 46 slug: str
47 48
[docs] 49class RealmSearchData(Model): 50 """Search-indexed realm data. 51 52 Shape from community probing; Blizzard has not documented it. 53 """ 54 55 id: int 56 name: LocalizedString 57 category: LocalizedString 58 locale: str 59 timezone: str 60 type: TypedName 61 is_tournament: bool 62 slug: str