Skip to content

Commit

Permalink
Add archon_quest_progress to genshin notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jokelbaf authored Apr 22, 2024
2 parents 01b5677 + c6a5548 commit 4a2f5fe
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions genshin/models/genshin/chronicle/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
from genshin.models.model import Aliased, APIModel

__all__ = [
"ArchonQuest",
"ArchonQuestProgress",
"ArchonQuestStatus",
"AttendanceReward",
"AttendanceRewardStatus",
"DailyTasks",
Expand Down Expand Up @@ -125,6 +128,30 @@ class DailyTasks(APIModel):
attendance_visible: bool


class ArchonQuestStatus(str, enum.Enum):
"""Archon quest status."""

ONGOING = "StatusOngoing"


class ArchonQuest(APIModel):
"""Archon Quest."""

id: int
status: ArchonQuestStatus
chapter_num: str
chapter_title: str


class ArchonQuestProgress(APIModel):
"""Archon Quest Progress."""

list: typing.Sequence[ArchonQuest]
mainlines_finished: bool = Aliased("is_finish_all_mainline")
archon_quest_unlocked: bool = Aliased("is_open_archon_quest")
interchapters_finished: bool = Aliased("is_finish_all_interchapter")


class Notes(APIModel):
"""Real-Time notes."""

Expand All @@ -148,6 +175,8 @@ class Notes(APIModel):
expeditions: typing.Sequence[Expedition]
max_expeditions: int = Aliased("max_expedition_num")

archon_quest_progress: ArchonQuestProgress

@property
def resin_recovery_time(self) -> datetime.datetime:
"""The time when resin will be recovered."""
Expand Down

0 comments on commit 4a2f5fe

Please sign in to comment.