TraktWatchedItem

@Serializable
data class TraktWatchedItem(val plays: Int = 0, val lastWatchedAt: Instant? = null, val lastUpdatedAt: Instant? = null, val resetAt: Instant? = null, val movie: TraktMovie? = null, val show: TraktShow? = null, val seasons: List<TraktWatchedSeason> = emptyList()) : TraktMediaItem

Response item from sync/watched/movies and sync/watched/shows endpoints.

Constructors

Link copied to clipboard
constructor(plays: Int = 0, lastWatchedAt: Instant? = null, lastUpdatedAt: Instant? = null, resetAt: Instant? = null, movie: TraktMovie? = null, show: TraktShow? = null, seasons: List<TraktWatchedSeason> = emptyList())

Properties

Link copied to clipboard
@SerialName(value = "last_updated_at")
val lastUpdatedAt: Instant?
Link copied to clipboard
@SerialName(value = "last_watched_at")
val lastWatchedAt: Instant?
Link copied to clipboard
@SerialName(value = "movie")
open override val movie: TraktMovie?
Link copied to clipboard
@SerialName(value = "plays")
val plays: Int
Link copied to clipboard
@SerialName(value = "reset_at")
val resetAt: Instant?
Link copied to clipboard
@SerialName(value = "seasons")
val seasons: List<TraktWatchedSeason>
Link copied to clipboard
@SerialName(value = "show")
open override val show: TraktShow?