2017-09-03 16:10:48 +02: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.PodcastChannel
|
|
|
|
|
|
|
|
class GetPodcastsResponse(
|
2018-03-24 19:47:55 +01:00
|
|
|
status: Status,
|
|
|
|
version: SubsonicAPIVersions,
|
|
|
|
error: SubsonicError?
|
|
|
|
) : SubsonicResponse(status, version, error) {
|
2017-09-03 16:10:48 +02:00
|
|
|
@JsonProperty("podcasts") private val channelsWrapper = PodcastChannelWrapper()
|
|
|
|
|
|
|
|
val podcastChannels: List<PodcastChannel>
|
|
|
|
get() = channelsWrapper.channelsList
|
|
|
|
}
|
|
|
|
|
|
|
|
private class PodcastChannelWrapper(
|
2018-03-24 19:47:55 +01:00
|
|
|
@JsonProperty("channel") val channelsList: List<PodcastChannel> = emptyList()
|
|
|
|
)
|