Skip to content

Commit

Permalink
feat: extended the Albums model according to the OpenSubsonic API pro…
Browse files Browse the repository at this point in the history
…ject indications
  • Loading branch information
CappielloAntonio committed May 25, 2024
1 parent 08e9be1 commit 25900c8
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,18 @@ open class AlbumID3 : Parcelable {
var starred: Date? = null
var year: Int = 0
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
}
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 25900c8

Please sign in to comment.