Skip to content

Commit 166aef1

Browse files
committed
Stub event response types.
Still needs more investigation.
1 parent fff6a4c commit 166aef1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

npps4/game/event.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,47 @@
1+
import enum
2+
13
import pydantic
24

35
from .. import idol
46
from .. import util
57
from ..system import common
68

79

10+
class EventBonus(pydantic.BaseModel):
11+
limited_bonus_type: int
12+
limited_bonus_value: int
13+
14+
15+
class EventCampaignList(pydantic.BaseModel):
16+
fixed_message: str = ""
17+
live_limited_bonuses: list[EventBonus]
18+
19+
20+
class EventBannerType(enum.IntEnum):
21+
EVENT = 0
22+
DUEL = 7
23+
ARENA = 14
24+
CONCERT = 15
25+
CLASS_COMPETITION = 16
26+
CLASS = 17
27+
28+
29+
class Event(pydantic.BaseModel):
30+
banner_type: EventBannerType
31+
asset_path: str
32+
start_date: str
33+
end_date: str
34+
is_locked: bool
35+
is_new: bool = True
36+
description: str = ""
37+
target_id: int | None = None
38+
# campaign_list: EventCampaignList | None = None
39+
40+
841
class EventTargetList(pydantic.BaseModel):
942
position: int
1043
is_displayable: bool = True
44+
event_list: list[Event]
1145

1246

1347
class EventListResponse(common.TimestampMixin):

0 commit comments

Comments
 (0)