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( status: Status, version: SubsonicAPIVersions, error: SubsonicError? ) : SubsonicResponse(status, version, error) { @JsonProperty("podcasts") private val channelsWrapper = PodcastChannelWrapper() val podcastChannels: List get() = channelsWrapper.channelsList } private class PodcastChannelWrapper( @JsonProperty("channel") val channelsList: List = emptyList() )