2024-07-05 13:58:00 +00:00
|
|
|
"""Starrail base character model."""
|
|
|
|
|
|
|
|
from pydantic import Field
|
|
|
|
|
|
|
|
from simnet.models.base import APIModel
|
|
|
|
|
|
|
|
|
|
|
|
class ZZZBaseCharacter(APIModel):
|
|
|
|
"""Base character model."""
|
|
|
|
|
|
|
|
id: int
|
|
|
|
element_type: int
|
|
|
|
rarity: str
|
2024-07-15 08:31:30 +00:00
|
|
|
|
2024-07-05 13:58:00 +00:00
|
|
|
|
|
|
|
class ZZZPartialCharacter(ZZZBaseCharacter):
|
|
|
|
"""Character without any equipment."""
|
|
|
|
|
|
|
|
name: str = Field(alias="name_mi18n")
|
|
|
|
full_name: str = Field(alias="full_name_mi18n")
|
|
|
|
camp_name: str = Field(alias="camp_name_mi18n")
|
|
|
|
avatar_profession: int
|
|
|
|
level: int
|
|
|
|
rank: int
|
2024-07-15 08:31:30 +00:00
|
|
|
group_icon_path: str
|
|
|
|
hollow_icon_path: str
|
2024-07-05 13:58:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ZZZBaseBuddy(APIModel):
|
|
|
|
"""Base Buddy model."""
|
|
|
|
|
|
|
|
id: int
|
|
|
|
rarity: str
|
|
|
|
level: int
|
2024-07-15 08:31:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ZZZPartialBuddy(ZZZBaseBuddy):
|
|
|
|
"""Buddy"""
|
|
|
|
|
|
|
|
name: str
|
2024-07-05 13:58:00 +00:00
|
|
|
star: int
|