1"""Models for the Item Appearance API."""
2
3from wow.models._common import Document, IdRef, Link, LocalizedString, Model, Ref, TypedName
4
5__all__ = [
6 "ItemAppearance",
7 "ItemAppearanceSearchData",
8 "ItemAppearanceSet",
9 "ItemAppearanceSetIndex",
10 "ItemAppearanceSlot",
11 "ItemAppearanceSlotIndex",
12 "ItemAppearanceSlotRef",
13]
14
15
[docs]
16class ItemAppearance(Document):
17 """An item appearance: the rendered look one or more items share."""
18
19 id: int
20 slot: TypedName
21 item_class: Ref
22 item_subclass: Ref
23 item_display_info_id: int
24 items: tuple[Ref, ...]
25 media: IdRef
26
27
[docs]
28class ItemAppearanceSetIndex(Document):
29 """Every item appearance set, such as a transmog set."""
30
31 appearance_sets: tuple[Ref, ...]
32
33
[docs]
34class ItemAppearanceSet(Document):
35 """An item appearance set: the appearances that make it up."""
36
37 id: int
38 set_name: str
39 appearances: tuple[IdRef, ...]
40
41
[docs]
42class ItemAppearanceSlotRef(Model):
43 """A link to one equipment slot's item appearances; the slot type is the last segment of ``key``'s href."""
44
45 key: Link
46
47
[docs]
48class ItemAppearanceSlotIndex(Document):
49 """Every equipment slot that has item appearances."""
50
51 slots: tuple[ItemAppearanceSlotRef, ...]
52
53
[docs]
54class ItemAppearanceSlot(Document):
55 """One equipment slot's item appearances."""
56
57 appearances: tuple[IdRef, ...]
58
59
60class _ItemAppearanceSearchLocalizedType(Model):
61 """A ``type`` constant with its localized label, as search results carry a slot."""
62
63 type: str
64 name: LocalizedString
65
66
[docs]
67class ItemAppearanceSearchData(Model):
68 """One item appearance as indexed for search: every locale's name at once, no ``_links``."""
69
70 id: int
71 item_display_info_id: int
72 slot: _ItemAppearanceSearchLocalizedType