Module genshin.models.zzz.chronicle.challenge.threshold

ZZZ Threshold Simulation models.

Classes

class ThresholdSimulation (**data: Any)
Expand source code
class ThresholdSimulation(APIModel):
    """ZZZ Threshold Simulation."""

    info: ThresholdSimulationInfo = Aliased("void_front_battle_abstract_info_brief")
    boss_challenge: typing.Optional[ThresholdSimulationBossChallenge] = Aliased("boss_challenge_record", default=None)
    challenges: typing.Sequence[ThresholdSimulationChallenge] = Aliased("main_challenge_record_list")
    player: typing.Optional[ThresholdSimulationPlayer] = Aliased("role_basic_info", default=None)

ZZZ Threshold Simulation.

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 boss_challenge : ThresholdSimulationBossChallenge | None
var challenges : Sequence[ThresholdSimulationChallenge]
var info : ThresholdSimulationInfo
var model_config : pydantic.config.ConfigDict
var player : ThresholdSimulationPlayer | None
class ThresholdSimulationBangboo (**data: Any)
Expand source code
class ThresholdSimulationBangboo(APIModel):
    """ZZZ Threshold Simulation bangboo model."""

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

ZZZ Threshold Simulation bangboo 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 rarity : Literal['S', 'A']
class ThresholdSimulationBoss (**data: Any)
Expand source code
class ThresholdSimulationBoss(APIModel):
    """ZZZ Threshold Simulation boss model."""

    icon: str
    name: str
    badge_icon: str = Aliased("race_icon")
    background: str = Aliased("bg_icon")

ZZZ Threshold Simulation boss 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 background : str
var badge_icon : str
var icon : str
var model_config : pydantic.config.ConfigDict
var name : str
class ThresholdSimulationBossChallenge (**data: Any)
Expand source code
class ThresholdSimulationBossChallenge(APIModel):
    """ZZZ Threshold Simulation boss challenge model."""

    boss: ThresholdSimulationBoss = Aliased("boss_info")
    challenge: ThresholdSimulationMainChallenge = Aliased("main_challenge_record")

ZZZ Threshold Simulation boss challenge 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 boss : ThresholdSimulationBoss
var challenge : ThresholdSimulationMainChallenge
var model_config : pydantic.config.ConfigDict
class ThresholdSimulationBuff (**data: Any)
Expand source code
class ThresholdSimulationBuff(APIModel):
    """ZZZ Threshold Simulation buff model."""

    name: str
    description: str = Aliased("desc")
    icon: str

ZZZ Threshold Simulation buff 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 description : str
var icon : str
var model_config : pydantic.config.ConfigDict
var name : str
class ThresholdSimulationChallenge (**data: Any)
Expand source code
class ThresholdSimulationChallenge(APIModel):
    """ZZZ Threshold Simulation challenge model."""

    id: int = Aliased("battle_id")
    name: str
    rating: typing.Literal["S", "A", "B"] = Aliased("star")

    characters: typing.Sequence[ThresholdSimulationCharacter] = Aliased("avatar_list")
    bangboo: typing.Optional[ThresholdSimulationBangboo] = Aliased("buddy", default=None)
    buff: ThresholdSimulationBuff = Aliased("buffer")

ZZZ Threshold Simulation challenge 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

Subclasses

Class variables

var bangboo : ThresholdSimulationBangboo | None
var buff : ThresholdSimulationBuff
var characters : Sequence[ThresholdSimulationCharacter]
var id : int
var model_config : pydantic.config.ConfigDict
var name : str
var rating : Literal['B', 'A', 'S']
class ThresholdSimulationCharacter (**data: Any)
Expand source code
class ThresholdSimulationCharacter(APIModel):
    """ZZZ Threshold Simulation character model."""

    id: int
    level: int
    element: ZZZElementType = Aliased("element_type")
    rarity: typing.Literal["S", "A"]
    mindscape: int = Aliased("rank")
    icon: str = Aliased("role_square_url")

ZZZ Threshold Simulation character 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 element : ZZZElementType
var icon : str
var id : int
var level : int
var mindscape : int
var model_config : pydantic.config.ConfigDict
var rarity : Literal['S', 'A']
class ThresholdSimulationInfo (**data: Any)
Expand source code
class ThresholdSimulationInfo(APIModel):
    """ZZZ Threshold Simulation brief info."""

    id: int = Aliased("void_front_id")
    time_remaining_over_42_days: bool = Aliased("end_ts_over_42_days")
    time_remaining_days: int = Aliased("end_ts")
    has_data: bool = Aliased("has_ending_record")
    ending_name: str = Aliased("ending_record_name")
    ending_background: str = Aliased("ending_record_bg_pic")
    total_score: int
    rank_percent: str

    @pydantic.field_validator("rank_percent", mode="before")
    def __parse_rank_percent(cls, value: int) -> str:
        return f"{value / 100}%"

ZZZ Threshold Simulation brief 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 allow self as a field name.

Ancestors

Class variables

var ending_background : str
var ending_name : str
var has_data : bool
var id : int
var model_config : pydantic.config.ConfigDict
var rank_percent : str
var time_remaining_days : int
var time_remaining_over_42_days : bool
var total_score : int
class ThresholdSimulationMainChallenge (**data: Any)
Expand source code
class ThresholdSimulationMainChallenge(ThresholdSimulationChallenge):
    """ZZZ Threshold Simulation main challenge model."""

    node_id: int
    score: int
    max_score: int
    score_multiplier: str = Aliased("score_ratio")
    time: PartialTime = Aliased("challenge_time")

    sub_challenges: typing.Sequence["ThresholdSimulationChallenge"] = Aliased("sub_challenge_record")

ZZZ Threshold Simulation main challenge 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 max_score : int
var model_config : pydantic.config.ConfigDict
var node_id : int
var score : int
var score_multiplier : str
var sub_challenges : Sequence[ThresholdSimulationChallenge]
var time : PartialTime
class ThresholdSimulationPlayer (**data: Any)
Expand source code
class ThresholdSimulationPlayer(APIModel):
    """ZZZ Threshold Simulation player info."""

    nickname: str
    server: str
    icon: str

ZZZ Threshold Simulation player 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 allow self as a field name.

Ancestors

Class variables

var icon : str
var model_config : pydantic.config.ConfigDict
var nickname : str
var server : str