refactor(PlaybackState): add URL context to Connecting state

- Add urls: List<String> = emptyList() for URL fallback list
- Add currentUrlIndex: Int = 0 for tracking fallback progress
- Defaults preserve backward compatibility (Connecting(station) still works)

Made-with: Cursor
This commit is contained in:
cottongin
2026-03-11 16:11:12 -04:00
parent 7da9fe9b5b
commit f3d28f1a52

View File

@@ -8,6 +8,8 @@ sealed interface PlaybackState {
data object Idle : PlaybackState
data class Connecting(
val station: Station,
val urls: List<String> = emptyList(),
val currentUrlIndex: Int = 0,
val sessionStartedAt: Long = System.currentTimeMillis()
) : PlaybackState
data class Playing(