LibrarySearchResponse

@Serializable
abstract class LibrarySearchResponse(var id: Int? = null, val latestUpdatedTime: Long = 0, val name: String = "", val url: String = "", val apiName: String = "", var type: TvType? = null, var posterUrl: String? = null, val year: Int? = null, val syncData: Map<String, String>? = null, var quality: SearchQuality? = null, var posterHeaders: Map<String, String>? = null, val plot: String? = null, var score: Score? = null, val tags: List<String>? = null) : SearchResponse(source)

Used to display notifications on new episodes and posters in library.

Inheritors

Constructors

Link copied to clipboard
constructor(id: Int? = null, latestUpdatedTime: Long = 0, name: String = "", url: String = "", apiName: String = "", type: TvType? = null, posterUrl: String? = null, year: Int? = null, syncData: Map<String, String>? = null, quality: SearchQuality? = null, posterHeaders: Map<String, String>? = null, plot: String? = null, score: Score? = null, tags: List<String>? = null)

Properties

Link copied to clipboard
@Transient
open override val apiName: String
Link copied to clipboard
@Transient
open override var id: Int?

These fields are marked @Transient because this class is only ever serialized through through its subclasses, which redeclare each property with their own @SerialName annotations. Without @Transient here, kotlinx.serialization would try to generate a serializer for the abstract base class itself (or double-serialize these fields), which fails/conflicts since these are meant to be overridden, not serialized directly from the parent.

Link copied to clipboard
@Transient
open val latestUpdatedTime: Long
Link copied to clipboard
@Transient
open override val name: String
Link copied to clipboard
@Transient
open val plot: String?
Link copied to clipboard
@Transient
open override var posterHeaders: Map<String, String>?
Link copied to clipboard
@Transient
open override var posterUrl: String?
Link copied to clipboard
@Transient
open override var quality: SearchQuality?
Link copied to clipboard
@SerialName(value = "rating")
var rating: Int?
Link copied to clipboard
@Transient
open override var score: Score?
Link copied to clipboard
@Transient
open val syncData: Map<String, String>?
Link copied to clipboard
@Transient
open val tags: List<String>?
Link copied to clipboard
@Transient
open override var type: TvType?
Link copied to clipboard
@Transient
open override val url: String
Link copied to clipboard
@Transient
open val year: Int?