-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathmodels.py
More file actions
56 lines (45 loc) · 1.17 KB
/
models.py
File metadata and controls
56 lines (45 loc) · 1.17 KB
1
2
3
4
5
6
7
8
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from datetime import datetime
from typing import Any, List, Optional
from xbox.webapi.common.models import CamelCaseModel
class Thumbnail(CamelCaseModel):
uri: str
file_size: int
thumbnail_type: int
class ScreenshotUri(CamelCaseModel):
uri: str
file_size: int
uri_type: int
expiration: datetime
class Screenshot(CamelCaseModel):
screenshot_id: str
resolution_height: int
resolution_width: int
state: int
date_published: datetime
date_taken: datetime
last_modified: datetime
user_caption: str
type: int
scid: str
title_id: int
rating: float
rating_count: int
views: int
title_data: str
system_properties: str
saved_by_user: bool
achievement_id: str
greatest_moment_id: Any = None
thumbnails: List[Thumbnail]
screenshot_uris: List[ScreenshotUri]
xuid: str
screenshot_name: str
title_name: str
screenshot_locale: str
screenshot_content_attributes: int
device_type: str
class PagingInfo(CamelCaseModel):
continuation_token: Optional[str] = None
class ScreenshotResponse(CamelCaseModel):
screenshots: List[Screenshot]
paging_info: PagingInfo