mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
36 lines
No EOL
1.4 KiB
Kotlin
36 lines
No EOL
1.4 KiB
Kotlin
package com.lagradost.cloudstream3.utils
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty
|
|
import com.lagradost.cloudstream3.TvType
|
|
object VideoDownloadHelper {
|
|
data class DownloadEpisodeCached(
|
|
@JsonProperty("name") val name: String?,
|
|
@JsonProperty("poster") val poster: String?,
|
|
@JsonProperty("episode") val episode: Int,
|
|
@JsonProperty("season") val season: Int?,
|
|
@JsonProperty("id") val id: Int,
|
|
@JsonProperty("parentId") val parentId: Int,
|
|
@JsonProperty("rating") val rating: Int?,
|
|
@JsonProperty("description") val description: String?,
|
|
@JsonProperty("cacheTime") val cacheTime: Long,
|
|
)
|
|
|
|
data class DownloadHeaderCached(
|
|
@JsonProperty("apiName") val apiName: String,
|
|
@JsonProperty("url") val url: String,
|
|
@JsonProperty("type") val type: TvType,
|
|
@JsonProperty("name") val name: String,
|
|
@JsonProperty("poster") val poster: String?,
|
|
@JsonProperty("id") val id: Int,
|
|
@JsonProperty("cacheTime") val cacheTime: Long,
|
|
)
|
|
|
|
data class ResumeWatching(
|
|
@JsonProperty("parentId") val parentId: Int,
|
|
@JsonProperty("episodeId") val episodeId: Int?,
|
|
@JsonProperty("episode") val episode: Int?,
|
|
@JsonProperty("season") val season: Int?,
|
|
@JsonProperty("updateTime") val updateTime: Long,
|
|
@JsonProperty("isFromDownload") val isFromDownload: Boolean,
|
|
)
|
|
} |