feat: add Spotify authentication and sessions
This commit is contained in:
parent
000b435b9a
commit
af3b77a7d0
5 changed files with 294 additions and 0 deletions
16
backend/app/domain/models.py
Normal file
16
backend/app/domain/models.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"""Pure domain models shared across application boundaries."""
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Track:
|
||||
"""A Spotify track expressed without transport-specific data."""
|
||||
|
||||
id: str
|
||||
uri: str
|
||||
title: str
|
||||
artists: tuple[str, ...]
|
||||
album_name: str
|
||||
album_art_url: str | None
|
||||
external_url: str | None
|
||||
Loading…
Add table
Add a link
Reference in a new issue