add classes
This commit is contained in:
parent
d59f743708
commit
f0defdd918
4 changed files with 31 additions and 12 deletions
18
backend/src/room.py
Normal file
18
backend/src/room.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
from song import Song
|
||||
|
||||
type UserScoredSong = tuple[Song, int]
|
||||
|
||||
|
||||
@dataclass
|
||||
class Room:
|
||||
id: int
|
||||
coord: tuple[float, float]
|
||||
name: str
|
||||
pin: int | None
|
||||
tags: set[str]
|
||||
creative: bool
|
||||
|
||||
playlist: set[UserScoredSong]
|
||||
history: list[Song]
|
Loading…
Add table
Add a link
Reference in a new issue