feat(stations): клиент скрывает оффлайн-станции с бэкенда (системно)

При обновлении каталога тянем GET /stations/offline-ids и удаляем эти станции
из локальной БД. Мёртвые плитки теперь пропадают сами (бэк их метит health-check'ом),
без пересборки приложения. Фолбэк на статичный enabled, если бэк недоступен.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
nk
2026-06-03 18:04:35 +03:00
parent 4c4c6e05d8
commit 615e3435e3
3 changed files with 21 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ interface RadiolaApi {
@GET("now-playing")
suspend fun getNowPlaying(): List<BackendNowPlayingDto>
// station_id оффлайн-станций — скрываем их в каталоге (мёртвые потоки)
@GET("stations/offline-ids")
suspend fun getOfflineStationIds(): List<Int>
@GET("users/me")
suspend fun getMe(): JsonObject