Skip to content

Labels

Label

Bases: BaseModel

Source code in pyclasher/api/models/labels.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
class Label(BaseModel):
    def __init__(self, data):
        super().__init__(data)
        return

    @property
    def name(self):
        return self._get_data('name')

    @property
    def id(self):
        return self._get_data('id')

    @property
    def icon_urls(self):
        return IconUrls(self._get_data('iconUrls'))

icon_urls: IconUrls property

label icon URLs

:return: the icon URLs of the label :rtype: IconUrls

id: int property

label ID

:return: the ID of the label :rtype: int

name: str property

label name

:return: the name of the label :rtype: str

LabelList

Bases: IterBaseModel

label list model

Holds information about the clan labels

can be iterated over

Source code in pyclasher/api/models/labels.py
23
24
class LabelList(IterBaseModel):
    _iter_rtype = Label