TraktRatedItem

@Serializable
data class TraktRatedItem(val rating: Int = 0, val ratedAt: Instant? = null, val type: TraktMediaType? = null, val movie: TraktMovie? = null, val show: TraktShow? = null, val season: TraktSeason? = null, val episode: TraktEpisode? = null) : TraktMediaItem

Response item from sync/ratings endpoints.

Constructors

Link copied to clipboard
constructor(rating: Int = 0, ratedAt: Instant? = null, type: TraktMediaType? = null, movie: TraktMovie? = null, show: TraktShow? = null, season: TraktSeason? = null, episode: TraktEpisode? = null)

Properties

Link copied to clipboard
@SerialName(value = "episode")
val episode: TraktEpisode?
Link copied to clipboard
@SerialName(value = "movie")
open override val movie: TraktMovie?
Link copied to clipboard
@SerialName(value = "rated_at")
val ratedAt: Instant?
Link copied to clipboard
@SerialName(value = "rating")
val rating: Int
Link copied to clipboard
@SerialName(value = "season")
val season: TraktSeason?
Link copied to clipboard
@SerialName(value = "show")
open override val show: TraktShow?
Link copied to clipboard
@SerialName(value = "type")
val type: TraktMediaType?