team-1/backend/src/room.py

19 lines
296 B
Python
Raw Normal View History

2025-08-01 18:46:38 +02:00
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]