File: models.py

package info (click to toggle)
python-xbox-webapi 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,916 kB
  • sloc: python: 4,973; makefile: 79
file content (84 lines) | stat: -rw-r--r-- 1,911 bytes parent folder | download | duplicates (2)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
from typing import List, Optional

from xbox.webapi.common.models import CamelCaseModel


class ContentSegment(CamelCaseModel):
    segment_id: int
    creation_type: str
    creator_channel_id: Optional[str] = None
    creator_xuid: int
    record_date: str
    duration_in_seconds: int
    offset: int
    secondary_title_id: Optional[int] = None
    title_id: int


class ContentLocator(CamelCaseModel):
    expiration: Optional[str] = None
    file_size: Optional[int] = None
    locator_type: str
    uri: str


class GameclipContent(CamelCaseModel):
    content_id: str
    content_locators: List[ContentLocator]
    content_segments: List[ContentSegment]
    creation_type: str
    duration_in_seconds: int
    local_id: str
    owner_xuid: int
    sandbox_id: str
    shared_to: List[int]
    title_id: int
    title_name: str
    upload_date: str
    upload_language: str
    upload_region: str
    upload_title_id: int
    upload_device_type: str
    comment_count: int
    like_count: int
    share_count: int
    view_count: int
    content_state: str
    enforcement_state: str
    sessions: List[str]
    tournaments: List[str]


class MediahubGameclips(CamelCaseModel):
    values: List[GameclipContent]


class ScreenshotContent(CamelCaseModel):
    content_id: str
    capture_date: str
    content_locators: List[ContentLocator]
    local_id: str
    owner_xuid: int
    resolution_height: int
    resolution_width: int
    date_uploaded: str
    sandbox_id: str
    shared_to: List[int]
    title_id: int
    title_name: str
    upload_language: str
    upload_region: str
    upload_title_id: int
    upload_device_type: str
    comment_count: int
    like_count: int
    share_count: int
    view_count: int
    content_state: str
    enforcement_state: str
    sessions: List[str]
    tournaments: List[str]


class MediahubScreenshots(CamelCaseModel):
    values: List[ScreenshotContent]