2026-07-03 01:06:35 +00:00

23 lines
626 B
Python

from pydantic import BaseModel
from typing import Optional, List
class RadioStationResponse(BaseModel):
id: str
name: str
frequency: Optional[str]
stream_url: str
location_lat: Optional[float]
location_lon: Optional[float]
genre: Optional[str]
country: Optional[str]
language: Optional[str]
bitrate: Optional[int]
tags: Optional[List[str]]
votes: Optional[int]
is_favorite: bool = False
class RadioCurrentResponse(BaseModel):
station: Optional[RadioStationResponse]
song_name: Optional[str] = None
artist_name: Optional[str] = None
is_playing: bool = False