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 (48 lines) | stat: -rw-r--r-- 1,247 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
from enum import Enum
from typing import List

from xbox.webapi.common.models import CamelCaseModel


class ProfileSettings(str, Enum):
    """
    Profile settings, used as parameter for Profile API
    """

    GAME_DISPLAY_NAME = "GameDisplayName"
    APP_DISPLAY_NAME = "AppDisplayName"
    APP_DISPLAYPIC_RAW = "AppDisplayPicRaw"
    GAME_DISPLAYPIC_RAW = "GameDisplayPicRaw"
    PUBLIC_GAMERPIC = "PublicGamerpic"
    SHOW_USER_AS_AVATAR = "ShowUserAsAvatar"
    GAMERSCORE = "Gamerscore"
    GAMERTAG = "Gamertag"
    MODERN_GAMERTAG = "ModernGamertag"
    MODERN_GAMERTAG_SUFFIX = "ModernGamertagSuffix"
    UNIQUE_MODERN_GAMERTAG = "UniqueModernGamertag"
    ACCOUNT_TIER = "AccountTier"
    TENURE_LEVEL = "TenureLevel"
    XBOX_ONE_REP = "XboxOneRep"
    PREFERRED_COLOR = "PreferredColor"
    LOCATION = "Location"
    BIOGRAPHY = "Bio"
    WATERMARKS = "Watermarks"
    REAL_NAME = "RealName"
    REAL_NAME_OVERRIDE = "RealNameOverride"
    IS_QUARANTINED = "IsQuarantined"


class Setting(CamelCaseModel):
    id: str
    value: str


class ProfileUser(CamelCaseModel):
    id: str
    host_id: str
    settings: List[Setting]
    is_sponsored_user: bool


class ProfileResponse(CamelCaseModel):
    profile_users: List[ProfileUser]