2017-11-11 21:17:00 +01:00
|
|
|
package org.moire.ultrasonic.api.subsonic.response
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty
|
|
|
|
import org.moire.ultrasonic.api.subsonic.SubsonicAPIVersions
|
|
|
|
import org.moire.ultrasonic.api.subsonic.SubsonicError
|
|
|
|
import org.moire.ultrasonic.api.subsonic.models.Genre
|
|
|
|
|
2018-03-24 19:47:55 +01:00
|
|
|
class GenresResponse(
|
|
|
|
status: Status,
|
|
|
|
version: SubsonicAPIVersions,
|
|
|
|
error: SubsonicError?
|
|
|
|
) : SubsonicResponse(status, version, error) {
|
2017-11-11 21:17:00 +01:00
|
|
|
@JsonProperty("genres") private val genresWrapper = GenresWrapper()
|
|
|
|
val genresList: List<Genre> get() = genresWrapper.genresList
|
|
|
|
}
|
|
|
|
|
|
|
|
internal class GenresWrapper(@JsonProperty("genre") val genresList: List<Genre> = emptyList())
|