mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-30 09:22:49 +00:00
50 lines
966 B
Python
50 lines
966 B
Python
"""Starrail chronicle stats."""
|
|
import typing
|
|
|
|
from pydantic import Field
|
|
|
|
from simnet.models.base import APIModel
|
|
|
|
from .. import character
|
|
|
|
__all__ = [
|
|
"PartialStarRailUserStats",
|
|
"StarRailUserInfo",
|
|
"StarRailUserStats",
|
|
"StarRailStats",
|
|
]
|
|
|
|
|
|
class StarRailStats(APIModel):
|
|
"""Overall user stats."""
|
|
|
|
active_days: int
|
|
avatar_num: int
|
|
achievement_num: int
|
|
chest_num: int
|
|
abyss_process: str
|
|
|
|
|
|
class PartialStarRailUserStats(APIModel):
|
|
"""User stats with characters without equipment."""
|
|
|
|
stats: StarRailStats
|
|
characters: typing.Sequence[character.StarRailPartialCharacter] = Field(alias="avatar_list")
|
|
|
|
|
|
class StarRailUserInfo(APIModel):
|
|
"""User info."""
|
|
|
|
nickname: str
|
|
server: str = Field(alias="region")
|
|
level: int
|
|
avatar: str
|
|
|
|
|
|
class StarRailUserStats(PartialStarRailUserStats):
|
|
"""User stats."""
|
|
|
|
info: StarRailUserInfo
|
|
cur_head_icon_url: str
|
|
phone_background_image_url: str
|