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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user