-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
282 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
android/shared/src/commonMain/kotlin/io/rebble/cobble/shared/data/MusicTrack.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.rebble.cobble.shared.data | ||
|
||
import kotlin.time.Duration | ||
|
||
data class MusicTrack ( | ||
val artist: String?, | ||
val album: String?, | ||
val title: String?, | ||
val duration: Duration, | ||
val trackCount: Int, | ||
val currentTrack: Int, | ||
) |
14 changes: 14 additions & 0 deletions
14
android/shared/src/commonMain/kotlin/io/rebble/cobble/shared/data/PlayState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.rebble.cobble.shared.data | ||
|
||
import io.rebble.libpebblecommon.packets.MusicControl | ||
|
||
data class PlayState( | ||
val playbackState: MusicControl.PlaybackState, | ||
val playbackPosition: Int, | ||
/** | ||
* Playback rate in percent (0-100) | ||
*/ | ||
val playbackRate: Int, | ||
val shuffleState: MusicControl.ShuffleState, | ||
val repeatState: MusicControl.RepeatState | ||
) |
Oops, something went wrong.