Carved out from the lofi-app monorepo. Kotlin MVVM client with HLS playback for the 20 curated lo-fi channels, including a containerized build.
33 lines
692 B
Kotlin
33 lines
692 B
Kotlin
package com.lofiradio.data.models
|
|
|
|
data class StreamInfo(
|
|
val videoId: String,
|
|
val url: String,
|
|
val streamType: String,
|
|
val title: String = "",
|
|
val channel: String = "",
|
|
val duration: Long? = null,
|
|
val isLive: Boolean = false
|
|
)
|
|
|
|
data class ChannelLiveResponse(
|
|
val channelId: String,
|
|
val name: String,
|
|
val isLive: Boolean,
|
|
val videoId: String?,
|
|
val thumbnail: String?
|
|
)
|
|
|
|
data class ChannelListResponse(
|
|
val channels: List<ServerChannel>
|
|
)
|
|
|
|
data class ServerChannel(
|
|
val id: String,
|
|
val name: String,
|
|
val handle: String,
|
|
val description: String,
|
|
val isLive: Boolean,
|
|
val videoId: String?,
|
|
val thumbnail: String?
|
|
) |