Skip to content

Commit 7377e9c

Browse files
committed
feat: add boost count to room
1 parent ce9356c commit 7377e9c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "recnetpy"
7-
version = "0.2.74"
7+
version = "0.2.75"
88
authors = [
99
{ name="RecNetBot Development"}
1010
]

src/recnetpy/dataclasses/room.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ class Room(BaseDataClass['RoomResponse']):
102102
visitor_count: int
103103
#: This in the number of times players have joined the room.
104104
visit_count: int
105+
#: This is the amount of boosts the room has.
106+
boost_count: int
105107
#: This is an account object which represents the player who created the room.
106108
creator_account: Optional['Account'] = None
107109
#: This a list of subroom objects which represents the room's subrooms.
@@ -164,6 +166,7 @@ def patch_data(self, data: 'RoomResponse') -> None:
164166
self.favorite_count = data["Stats"]["FavoriteCount"]
165167
self.visitor_count = data["Stats"]["VisitorCount"]
166168
self.visit_count = data["Stats"]["VisitCount"]
169+
self.boost_count = data["BoostCount"]
167170
self.subrooms = SubRoom.create_from_list(data.get("SubRooms"))
168171
self.roles = Role.create_from_list(data.get("Roles"))
169172
self.tags = Tag.create_from_list(data.get("Tags"))

src/recnetpy/misc/api_responses.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ class RoomResponse(RoomResponseOptionals):
282282
MinLevel: int
283283
CreatedAt: str
284284
Stats: Stats
285+
BoostCount: int
285286

286287
class RoomSearchResponse(TypedDict):
287288
"""

0 commit comments

Comments
 (0)