package dev.jdtech.jellyfin.ui.dummy

import dev.jdtech.jellyfin.models.EpisodeItem
import dev.jdtech.jellyfin.models.FindroidEpisode
import dev.jdtech.jellyfin.models.FindroidImages
import dev.jdtech.jellyfin.models.FindroidMediaStream
import dev.jdtech.jellyfin.models.FindroidSource
import dev.jdtech.jellyfin.models.FindroidSourceType
import org.jellyfin.sdk.model.api.MediaStreamType
import java.time.LocalDateTime
import java.util.UUID

val dummyEpisode = FindroidEpisode(
    id = UUID.randomUUID(),
    name = "Mother and Children",
    originalTitle = null,
    overview = "Stories are lies meant to entertain, and idols lie to fans eager to believe. This is Ai’s story. It is a lie, but it is also true.",
    indexNumber = 1,
    indexNumberEnd = null,
    parentIndexNumber = 1,
    sources = listOf(
        FindroidSource(
            id = "",
            name = "",
            type = FindroidSourceType.REMOTE,
            path = "",
            size = 0L,
            mediaStreams = listOf(
                FindroidMediaStream(
                    title = "",
                    displayTitle = "",
                    language = "en",
                    type = MediaStreamType.VIDEO,
                    codec = "hevc",
                    isExternal = false,
                    path = "",
                    channelLayout = null,
                    videoRangeType = null,
                    height = 1080,
                    width = 1920,
                    videoDoViTitle = null,
                ),
            ),
        ),
    ),
    played = true,
    favorite = true,
    canPlay = true,
    canDownload = true,
    runtimeTicks = 20L,
    playbackPositionTicks = 0L,
    premiereDate = LocalDateTime.parse("2019-02-14T00:00:00"),
    seriesName = "Oshi no Ko",
    seriesId = UUID.randomUUID(),
    seasonId = UUID.randomUUID(),
    communityRating = 9.2f,
    images = FindroidImages(),
)

val dummyEpisodes = listOf(
    dummyEpisode,
)

val dummyEpisodeItems = listOf(
    EpisodeItem.Episode(dummyEpisode),
)
