mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
feat: extended the Albums model according to the OpenSubsonic API project indications
This commit is contained in:
parent
08e9be107b
commit
25900c848a
5 changed files with 61 additions and 0 deletions
|
|
@ -22,4 +22,18 @@ open class AlbumID3 : Parcelable {
|
||||||
var starred: Date? = null
|
var starred: Date? = null
|
||||||
var year: Int = 0
|
var year: Int = 0
|
||||||
var genre: String? = null
|
var genre: String? = null
|
||||||
|
var played: String? = null
|
||||||
|
var userRating: Int? = 0
|
||||||
|
var recordLabels: List<RecordLabel>? = null
|
||||||
|
var musicBrainzId: String? = null
|
||||||
|
var genres: List<ItemGenre>? = null
|
||||||
|
var artists: List<ArtistID3>? = null
|
||||||
|
var displayArtist: String? = null
|
||||||
|
var releaseTypes: List<String>? = null
|
||||||
|
var moods: List<String>? = null
|
||||||
|
var sortName: String? = null
|
||||||
|
var originalReleaseDate: ItemDate? = null
|
||||||
|
var releaseDate: ItemDate? = null
|
||||||
|
var isCompilation: Boolean? = null
|
||||||
|
var discTitles: List<DiscTitle>? = null
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.cappielloantonio.tempo.subsonic.models
|
||||||
|
|
||||||
|
import android.os.Parcelable
|
||||||
|
import androidx.annotation.Keep
|
||||||
|
import kotlinx.parcelize.Parcelize
|
||||||
|
|
||||||
|
@Keep
|
||||||
|
@Parcelize
|
||||||
|
open class DiscTitle : Parcelable {
|
||||||
|
var disc: Int? = null
|
||||||
|
var title: String? = null
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.cappielloantonio.tempo.subsonic.models
|
||||||
|
|
||||||
|
import android.os.Parcelable
|
||||||
|
import androidx.annotation.Keep
|
||||||
|
import kotlinx.parcelize.Parcelize
|
||||||
|
|
||||||
|
@Keep
|
||||||
|
@Parcelize
|
||||||
|
open class ItemDate : Parcelable {
|
||||||
|
var year: Int? = null
|
||||||
|
var month: Int? = null
|
||||||
|
var day: Int? = null
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.cappielloantonio.tempo.subsonic.models
|
||||||
|
|
||||||
|
import android.os.Parcelable
|
||||||
|
import androidx.annotation.Keep
|
||||||
|
import kotlinx.parcelize.Parcelize
|
||||||
|
|
||||||
|
@Keep
|
||||||
|
@Parcelize
|
||||||
|
open class ItemGenre : Parcelable {
|
||||||
|
var name: String? = null
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.cappielloantonio.tempo.subsonic.models
|
||||||
|
|
||||||
|
import android.os.Parcelable
|
||||||
|
import androidx.annotation.Keep
|
||||||
|
import kotlinx.parcelize.Parcelize
|
||||||
|
|
||||||
|
@Keep
|
||||||
|
@Parcelize
|
||||||
|
open class RecordLabel : Parcelable {
|
||||||
|
var name: String? = null
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue