Base models
base models for this API wrapper client
After
Holds the after string
Source code in pyclasher/api/models/base_models.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
value: str
property
value of the after model
:return: the value of the after model :rtype: str
__init__(after)
initialisation of the after model
:return: None :rtype: None
Source code in pyclasher/api/models/base_models.py
64 65 66 |
|
BadgeUrl
Bases: ImageUrl
class to hold an url for one badge
Source code in pyclasher/api/models/base_models.py
111 112 |
|
BadgeUrls
Bases: BaseModel
class to hold data of a clan badge
Source code in pyclasher/api/models/base_models.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
|
large: BadgeUrl
property
large badge URL
:return: the large badge URL :rtype: BadgeUrl
medium: BadgeUrl
property
medium badge URL
:return: the medium badge URL :rtype: BadgeUrl
small: BadgeUrl
property
small badge URL
:return: the small badge URL :rtype: BadgeUrl
BaseClan
Bases: BaseModel
base clan model
Source code in pyclasher/api/models/base_models.py
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
|
badge_urls: BadgeUrls
property
clan badge URLs
:return: the clan's badge URLs :rtype: BadgeUrls
name: str
property
clan name
:return: the clan's name :rtype: str
tag: str
property
clan tag
:return: the clan's tag :rtype: str
BaseClanMember
Bases: BaseModel
base clan member model
Source code in pyclasher/api/models/base_models.py
270 271 272 273 274 275 276 277 278 279 280 |
|
name: str
property
clan member's name
:return: the clan member's name :rtype: str
tag: str
property
clan member's tag
:return: the clan member's tag :rtype: str
BaseLeague
Bases: BaseModel
base league model
Source code in pyclasher/api/models/base_models.py
283 284 285 286 287 288 289 290 291 292 293 |
|
id: int
property
league id
:return: the league id :rtype: int
name: str
property
league name
:return: the league name :rtype: str
Before
before model
Source code in pyclasher/api/models/base_models.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
value: str
property
value of the before model
:return: the value of the before model :rtype: str
__init__(before)
initialisation of the before model
:return: None :rtype: None
Source code in pyclasher/api/models/base_models.py
80 81 82 |
|
Cursor
Bases: BaseModel
cursor model
Source code in pyclasher/api/models/base_models.py
95 96 97 98 99 100 101 102 |
|
IconUrl
Bases: ImageUrl
Holds an icon url
Source code in pyclasher/api/models/base_models.py
37 38 |
|
IconUrls
Bases: BaseModel
icon URLs model that contains 3 icon URLs
Source code in pyclasher/api/models/base_models.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
medium: IconUrl | MISSING
property
medium icon URL
:return: the medium icon URL or MISSING if the medium icon URL is not supported for a model :rtype: str | Missing
small: IconUrl
property
small icon URL
:return: the small icon URL :rtype: str
tiny: Missing | IconUrl
property
tiny icon URL
:return: the tiny icon URL or MISSING if the tiny icon URL is not supported for a model :rtype: Missing | IconUrl
ImageUrl
image URL model
:ivar __url: URL of the image :type __url: str
Source code in pyclasher/api/models/base_models.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
url: str
property
URL of the image
:return: the URL of the image :rtype: str
__init__(url)
initialisation of the image url model
Source code in pyclasher/api/models/base_models.py
10 11 12 |
|
save_image(filename, logger=MISSING)
async
NOT IMPLEMENTED YET
coroutine that retrieves the image of the URL
Source code in pyclasher/api/models/base_models.py
21 22 23 24 |
|
Paging
Bases: BaseModel
Holds information about the paging of the clan war log
Source code in pyclasher/api/models/base_models.py
105 106 107 108 |
|
Time
time model
:cvar time_format: time format of the string class method :type time_format: str :ivar _year: year of the date and time :type _year: int :ivar _month: month of the date and time :type _month: int :ivar _day: day of the date and time :type _day: int :ivar _hour: hour of the date and time :type _hour: int :ivar _minute: minute of the date and time :type _minute: int :ivar _second: second of the date and time :type _second: int :ivar _microsecond: microsecond of the date and time :type _microsecond: int
Source code in pyclasher/api/models/base_models.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 |
|
day: int
property
day of the date and time
:return: the day of the date and time :rtype: int
hour: int
property
hour of the date and time
:return: the hour of the date and time :rtype: int
microsecond: int
property
microsecond of the date and time
:return: the microsecond of the date and time :rtype: int
minute: int
property
minute of the date and time
:return: the minute of the date and time :rtype: int
month: int
property
month of the date and time
:return: the month of the date and time :rtype: int
second: int
property
second of the date and time
:return: the second of the date and time :rtype: int
year: int
property
year of the date and time
:return: the year of the date and time :rtype: int
__init__(year, month, day, hour, minute, second, microsecond)
initialisation of the time model
:param year: year of the date and time :type year: int :param month: month of the date and time :type month: int :param day: day of the date and time :type day: int :param hour: hour of the date and time :type hour: int :param minute: minute of the date and time :type minute: int :param second: second of the date and time :type second: int :param microsecond: microsecond of the date and time :type microsecond: int
Source code in pyclasher/api/models/base_models.py
135 136 137 138 139 140 141 142 143 |
|
from_str(time)
classmethod
class method that converts a string with the format yyyymmddThhmmss.000Z
:param time: the time string following the format '%Y%m%dT%H%M%S.%fZ' :type time: str :return: a Time instance :rtype: Time :raise InvalidTimeFormat: raises InvalidTimeFormat if the time does not match the format '%Y%m%dT%H%M%S.%fZ'
Source code in pyclasher/api/models/base_models.py
173 174 175 176 177 178 179 180 181 182 183 |
|