-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Upgrade project to java 21 version
- Loading branch information
1 parent
25a2b79
commit ca95791
Showing
11 changed files
with
125 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
61 changes: 61 additions & 0 deletions
61
core/network/src/main/java/com/example/mymusic/core/network/model/PlaybackStateResponse.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,61 @@ | ||
package com.example.mymusic.core.network.model | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Device( | ||
val id: String?, | ||
@SerialName("is_active") | ||
val isActive: Boolean, | ||
@SerialName("is_private_session") | ||
val isPrivateSession: Boolean, | ||
@SerialName("is_restricted") | ||
val isRestricted: Boolean, | ||
val name: String, | ||
val type: String, | ||
@SerialName("volume_percent") | ||
val volumePercent: Int?, | ||
@SerialName("supports_volume") | ||
val supportsVolume: Boolean | ||
) | ||
|
||
@Serializable | ||
data class Actions( | ||
@SerialName("interrupting_playback") | ||
val interruptingPlayback: Boolean, | ||
val pausing: Boolean, | ||
val resuming: Boolean, | ||
val seeking: Boolean, | ||
@SerialName("skipping_next") | ||
val skippingNext: Boolean, | ||
@SerialName("skipping_prev") | ||
val skippingPrev: Boolean, | ||
@SerialName("toggling_repeat_context") | ||
val togglingRepeatContext: Boolean, | ||
@SerialName("toggling_shuffle") | ||
val togglingShuffle: Boolean, | ||
@SerialName("toggling_repeat_track") | ||
val togglingRepeatTrack: Boolean, | ||
@SerialName("transferring_playback") | ||
val transferringPlayback: Boolean | ||
) | ||
|
||
@Serializable | ||
data class PlaybackStateResponse( | ||
val device: Device, | ||
@SerialName("repeat_state") | ||
val repeatState: Boolean, | ||
@SerialName("shuffle_state") | ||
val shuffleState: Boolean, | ||
val context: Context, | ||
val timestamp: Int, | ||
@SerialName("progress_ms") | ||
val progressMs: Int, | ||
@SerialName("is_playing") | ||
val isPlaying: Boolean, | ||
val item: SpotifyTrack, // TODO: OneOf issue | ||
@SerialName("currently_playing_type") | ||
val currentlyPlayingType: String, | ||
val actions: Actions | ||
) |
Empty file.
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed May 01 17:34:00 MSK 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |