Use int to represent volume

This commit is contained in:
norohind committed 2022-11-13 19:35:13 +03:00
1 parent 1f5dc1e561
commit 6de07b89fa
3 files changed
+30 -17

No files matched your search

+5 -3
View File
@@ -54,7 +54,9 @@ Cases:
Send `Session closed` event
3. New client:
Send events as in `New Session` case
Send events as in `New Session` case
Volume and volume increment as int in range 0 to 100
"""
@@ -96,7 +98,7 @@ class StateChanged(ServerToClientEvent):
@dataclass
class VolumeChanged(ServerToClientEvent):
new_volume: float
new_volume: int
@dataclass
@@ -113,7 +115,7 @@ class SetName(ServerToClientEvent):
@dataclass
class VolumeIncrement(ClientToServerEvent):
increment: float
increment: int
@dataclass