Module genshin.models.zzz.chronicle.stats

ZZZ data overview models.

Classes

class HIACoin (**data: Any)
Expand source code
class HIACoin(APIModel):
    """HIACoin model."""

    num: int
    name: str
    icon: str = Aliased("url")

HIACoin model.

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 allow self as a field name.

Ancestors

Class variables

var icon : str
var model_config : pydantic.config.ConfigDict
var name : str
var num : int
class ZZZBaseBangboo (**data: Any)
Expand source code
class ZZZBaseBangboo(APIModel):
    """Base bangboo (buddy) model."""

    id: int
    name: str
    rarity: typing.Literal["S", "A"]
    level: int
    star: int
    icon: str = Aliased("bangboo_rectangle_url")

Base bangboo (buddy) model.

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 allow self as a field name.

Ancestors

Class variables

var icon : str
var id : int
var level : int
var model_config : pydantic.config.ConfigDict
var name : str
var rarity : Literal['S', 'A']
var star : int
class ZZZCatNote (**data: Any)
Expand source code
class ZZZCatNote(APIModel):
    """ZZZ Cat note model."""

    icon: str
    id: int
    is_lock: bool
    name: str
    num: int
    total: int

ZZZ Cat note model.

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 allow self as a field name.

Ancestors

Class variables

var icon : str
var id : int
var is_lock : bool
var model_config : pydantic.config.ConfigDict
var name : str
var num : int
var total : int
class ZZZGameData (**data: Any)
Expand source code
class ZZZGameData(APIModel):
    """ZZZ game data model."""

    personal_title: str
    title_main_color: str
    title_bottom_color: str
    title_bg_url: str
    medal_icons: typing.Sequence[str] = Aliased("medal_list")
    card_url: str
    medals: typing.Sequence[ZZZMedal] = Aliased("all_medal_list")

ZZZ game data model.

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 allow self as a field name.

Ancestors

Class variables

var card_url : str
var medal_icons : Sequence[str]
var medals : Sequence[ZZZMedal]
var model_config : pydantic.config.ConfigDict
var personal_title : str
var title_bg_url : str
var title_bottom_color : str
var title_main_color : str
class ZZZMedal (**data: Any)
Expand source code
class ZZZMedal(APIModel):
    """ZZZ player medal model."""

    icon: str = Aliased("medal_icon")
    number: int
    id: int = Aliased("medal_id")
    type: str = Aliased("medal_type")
    name: str
    is_show: bool

ZZZ player medal model.

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 allow self as a field name.

Ancestors

Class variables

var icon : str
var id : int
var is_show : bool
var model_config : pydantic.config.ConfigDict
var name : str
var number : int
var type : str
class ZZZStats (**data: Any)
Expand source code
class ZZZStats(APIModel):
    """ZZZ data overview stats."""

    active_days: int
    character_num: int = Aliased("avatar_num")
    inter_knot_reputation: str = Aliased("world_level_name")
    shiyu_defense_frontiers: int = Aliased("cur_period_zone_layer_count")
    bangboo_obtained: int = Aliased("buddy_num")
    achievement_count: int
    hia_coin: typing.Optional[HIACoin] = Aliased("commemorative_coins_list")

    @pydantic.field_validator("hia_coin", mode="before")
    def __unnest_hia_coin(
        cls, v: typing.List[typing.Dict[str, typing.Any]]
    ) -> typing.Optional[typing.Dict[str, typing.Any]]:
        return v[0] if v else None

ZZZ data overview 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 allow self as a field name.

Ancestors

Class variables

var achievement_count : int
var active_days : int
var bangboo_obtained : int
var character_num : int
var hia_coinHIACoin | None
var inter_knot_reputation : str
var model_config : pydantic.config.ConfigDict
var shiyu_defense_frontiers : int
class ZZZUserStats (**data: Any)
Expand source code
class ZZZUserStats(APIModel):
    """Zenless Zone Zero user model."""

    stats: ZZZStats
    agents: typing.Sequence[ZZZPartialAgent] = Aliased("avatar_list")
    bangboos: typing.Sequence[ZZZBaseBangboo] = Aliased("buddy_list")
    in_game_avatar: str = Aliased("cur_head_icon_url")
    cat_notes: typing.Sequence[ZZZCatNote] = Aliased("cat_notes_list")
    in_game_data: ZZZGameData = Aliased("game_data_show")

Zenless Zone Zero user model.

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 allow self as a field name.

Ancestors

Class variables

var agents : Sequence[ZZZPartialAgent]
var bangboos : Sequence[ZZZBaseBangboo]
var cat_notes : Sequence[ZZZCatNote]
var in_game_avatar : str
var in_game_dataZZZGameData
var model_config : pydantic.config.ConfigDict
var statsZZZStats