-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
98 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
from datetime import datetime, timedelta | ||
from typing import List | ||
|
||
from simnet.models.base import APIModel | ||
from simnet.models.genshin.character import BaseCharacter | ||
|
||
|
||
class EquipListItem(BaseCharacter): | ||
"""A model representing an equipment item in the Genshin act calendar.""" | ||
|
||
wiki_url: str | ||
|
||
|
||
class AvatarListItem(BaseCharacter): | ||
"""A model representing an avatar item in the Genshin act calendar.""" | ||
|
||
is_invisible: bool = False | ||
|
||
|
||
class CardPoolListItem(APIModel): | ||
"""A model representing an item in the card pool list in the Genshin act calendar.""" | ||
|
||
pool_id: int | ||
version_name: str | ||
pool_name: str | ||
pool_type: int | ||
avatars: List[AvatarListItem] | ||
weapon: List[EquipListItem] | ||
start_timestamp: datetime | ||
end_timestamp: datetime | ||
jump_url: str | ||
pool_status: int | ||
countdown_seconds: timedelta | ||
|
||
|
||
class RewardItem(APIModel): | ||
"""A model representing a reward item in the Genshin act calendar.""" | ||
|
||
item_id: int | ||
name: str | ||
icon: str | ||
wiki_url: str | ||
num: int | ||
rarity: str | ||
homepage_show: bool | ||
|
||
|
||
class ActListItem(APIModel): | ||
"""A model representing an item in the Genshin act calendar.""" | ||
|
||
id: int | ||
name: str | ||
type: str | ||
start_timestamp: datetime | ||
end_timestamp: datetime | ||
desc: str | ||
strategy: str | ||
countdown_seconds: timedelta | ||
status: int | ||
reward_list: List[RewardItem] | ||
is_finished: bool | ||
|
||
|
||
class GenshinActCalendar(APIModel): | ||
"""A model representing the StarRail act calendar.""" | ||
|
||
avatar_card_pool_list: List[CardPoolListItem] | ||
weapon_card_pool_list: List[CardPoolListItem] | ||
mixed_card_pool_list: List[CardPoolListItem] | ||
|
||
act_list: List[ActListItem] | ||
fixed_act_list: List[ActListItem] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters