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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var boss_challenge : ThresholdSimulationBossChallenge | Nonevar challenges : Sequence[ThresholdSimulationChallenge]var info : ThresholdSimulationInfovar model_config : pydantic.config.ConfigDictvar 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var icon : strvar id : intvar level : intvar model_config : pydantic.config.ConfigDictvar 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var background : strvar badge_icon : strvar icon : strvar model_config : pydantic.config.ConfigDictvar 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var boss : ThresholdSimulationBossvar challenge : ThresholdSimulationMainChallengevar 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: strZZZ 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var description : strvar icon : strvar model_config : pydantic.config.ConfigDictvar 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Subclasses
Class variables
var bangboo : ThresholdSimulationBangboo | Nonevar buff : ThresholdSimulationBuffvar characters : Sequence[ThresholdSimulationCharacter]var id : intvar model_config : pydantic.config.ConfigDictvar name : strvar 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var element : ZZZElementTypevar icon : strvar id : intvar level : intvar mindscape : intvar model_config : pydantic.config.ConfigDictvar 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var ending_background : strvar ending_name : strvar has_data : boolvar id : intvar model_config : pydantic.config.ConfigDictvar rank_percent : strvar time_remaining_days : intvar time_remaining_over_42_days : boolvar 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- ThresholdSimulationChallenge
- APIModel
- pydantic.main.BaseModel
Class variables
var max_score : intvar model_config : pydantic.config.ConfigDictvar node_id : intvar score : intvar score_multiplier : strvar 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: strZZZ 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var icon : strvar model_config : pydantic.config.ConfigDictvar nickname : strvar server : str