Module genshin.models.starrail.chronicle.stats
Starrail chronicle stats.
Classes
class PartialStarRailUserStats (**data: Any)
-
Expand source code
class PartialStarRailUserStats(APIModel): """User stats with characters without equipment.""" stats: StarRailStats characters: typing.Sequence[character.StarRailPartialCharacter] = Aliased("avatar_list") in_game_avatar: str = Aliased("cur_head_icon_url") phone_background: str = Aliased("phone_background_image_url")
User stats with characters without equipment.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Subclasses
Class variables
var characters : Sequence[StarRailPartialCharacter]
var in_game_avatar : str
var model_config : pydantic.config.ConfigDict
var phone_background : str
var stats : StarRailStats
class StarRailStats (**data: Any)
-
Expand source code
class StarRailStats(APIModel): """Overall user stats.""" active_days: int avatar_num: int achievement_num: int chest_num: int abyss_process: str dreamscape_pass_sticker: int = Aliased("dream_paster_num")
Overall user stats.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var abyss_process : str
var achievement_num : int
var active_days : int
var avatar_num : int
var chest_num : int
var dreamscape_pass_sticker : int
var model_config : pydantic.config.ConfigDict
class StarRailUserInfo (**data: Any)
-
Expand source code
class StarRailUserInfo(APIModel): """User info.""" nickname: str server: str = Aliased("region") level: int avatar: str
User info.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var avatar : str
var level : int
var model_config : pydantic.config.ConfigDict
var nickname : str
var server : str
class StarRailUserStats (**data: Any)
-
Expand source code
class StarRailUserStats(PartialStarRailUserStats): """User stats.""" info: StarRailUserInfo
User stats.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- PartialStarRailUserStats
- APIModel
- pydantic.main.BaseModel
Class variables
var info : StarRailUserInfo
var model_config : pydantic.config.ConfigDict