File: models.py

package info (click to toggle)
python-xbox-webapi 2.1.0-1.2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,900 kB
  • sloc: python: 4,973; makefile: 79
file content (19 lines) | stat: -rw-r--r-- 333 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
from typing import List

from xbox.webapi.common.models import CamelCaseModel


class UserDetail(CamelCaseModel):
    id: str
    gamertag: str
    display_pic_uri: str
    score: float


class UserResult(CamelCaseModel):
    text: str
    result: UserDetail


class UserSearchResponse(CamelCaseModel):
    results: List[UserResult]