diff options
Diffstat (limited to 'src/ampache/models.py')
-rw-r--r-- | src/ampache/models.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ampache/models.py b/src/ampache/models.py index 9508b2e..452b1c5 100644 --- a/src/ampache/models.py +++ b/src/ampache/models.py @@ -26,6 +26,17 @@ class Song: @dataclass +class Album: + album_id: str + title: str + artist: str + songs: list[Song] + + def __str__(self): + return f"{self.title} by {self.artist}" + + +@dataclass class Error: code: int message: str |