/* * Copyright (c) 2023. yo-saito. All Rights Reserved. */ package net.piedpiper.bremer.model.api import net.piedpiper.bremer.entity.AudioEntity data class AudioListResponse( private val entities: List<AudioEntity> ) { val audio: List<Audio> = entities.map { Audio(it) } data class Audio( private val entity: AudioEntity ) { val name: String = entity.name val slug: String = entity.slug val artist: String? = entity?.artist?.name val album: String? = entity?.album?.name } }