Package-level declarations

Types

Link copied to clipboard
@Serializable
data class TraktAccessToken(val accessToken: String? = null, val tokenType: String? = null, val expiresIn: Int? = null, val refreshToken: String? = null, val scope: String? = null, val createdAt: Long? = null)
Link copied to clipboard
@Serializable
data class TraktAccount(val timezone: String? = null, val coverImage: String? = null)
Link copied to clipboard
@Serializable
data class TraktAccountActivities(val settingsAt: Instant? = null, val followedAt: Instant? = null, val followingAt: Instant? = null, val pendingAt: Instant? = null, val requestedAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktAirs(val day: String? = null, val time: String? = null, val timezone: String? = null)
Link copied to clipboard
@Serializable
data class TraktAlias(val title: String, val country: String)
Link copied to clipboard
@Serializable
data class TraktAnticipatedMovie(val listCount: Int? = null, val movie: TraktMovie)
Link copied to clipboard
@Serializable
data class TraktAnticipatedShow(val show: TraktShow? = null, val listCount: Int? = null)
Link copied to clipboard
@Serializable
data class TraktAvatar(val full: String? = null)
Link copied to clipboard
@Serializable
data class TraktBoxOfficeMovie(val revenue: Long, val movie: TraktMovie)
Link copied to clipboard
@Serializable
data class TraktCalendarMovie(val released: String? = null, val movie: TraktMovie? = null)
Link copied to clipboard
@Serializable
data class TraktCalendarShow(val firstAired: Instant? = null, val episode: TraktEpisode? = null, val show: TraktShow? = null)
Link copied to clipboard
@Serializable
data class TraktCastMember(val character: String? = null, val characters: List<String> = emptyList(), val person: TraktPerson)
Link copied to clipboard
@Serializable
data class TraktCertification(val name: String, val slug: String, val description: String? = null)
Link copied to clipboard
@Serializable
data class TraktCertifications(val us: List<TraktCertification> = emptyList())
Link copied to clipboard
sealed class TraktCheckin
Link copied to clipboard
@Serializable
data class TraktCheckinItem(val movie: TraktCheckinMovie?, val show: TraktCheckinShow?, val episode: TraktEpisode?, val sharing: TraktSharing, val message: String?)
Link copied to clipboard
@Serializable
data class TraktCheckinMovie(val title: String?, val ids: TraktItemIds)
Link copied to clipboard
@Serializable
data class TraktCheckinShow(val title: String?, val ids: TraktItemIds)
Link copied to clipboard
@Serializable
data class TraktCollectionItem(val collectedAt: Instant? = null, val lastCollectedAt: Instant? = null, val lastUpdatedAt: Instant? = null, val movie: TraktMovie? = null, val show: TraktShow? = null, val seasons: List<TraktSeason> = emptyList()) : TraktMediaItem

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

Link copied to clipboard
@Serializable
data class TraktComment(val id: Int, val createdAt: Instant? = null, val comment: String, val spoiler: Boolean, val likes: Int? = null, val replies: Int? = null, val user: TraktUser?, val userStats: TraktUserStats? = null, val movie: TraktMovie? = null, val show: TraktShow? = null, val episode: TraktEpisode? = null, val season: TraktSeason? = null)
Link copied to clipboard
@Serializable
data class TraktCommentActivities(val likedAt: Instant? = null, val blockedAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktCommentItem(val type: TraktMediaType? = null, val movie: TraktMovie? = null, val show: TraktShow? = null, val season: TraktSeason? = null, val episode: TraktEpisode? = null, val list: TraktList? = null) : TraktMediaItem

Response item from comments/:id/item endpoint. Returns the media item a comment is attached to.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class TraktCountry(val name: String, val code: String)
Link copied to clipboard
@Serializable
data class TraktCredits(val cast: List<TraktCastMember> = emptyList(), val crew: TraktCrewMembers? = null)
Link copied to clipboard
@Serializable
data class TraktCrewMember(val job: String? = null, val jobs: List<String> = emptyList(), val person: TraktPerson)
Link copied to clipboard
@Serializable
data class TraktCrewMembers(val production: List<TraktCrewMember> = emptyList(), val art: List<TraktCrewMember> = emptyList(), val crew: List<TraktCrewMember> = emptyList(), val costumeMakeUp: List<TraktCrewMember> = emptyList(), val directing: List<TraktCrewMember> = emptyList(), val writing: List<TraktCrewMember> = emptyList(), val sound: List<TraktCrewMember> = emptyList(), val camera: List<TraktCrewMember> = emptyList(), val visualEffects: List<TraktCrewMember> = emptyList(), val lighting: List<TraktCrewMember> = emptyList(), val editing: List<TraktCrewMember> = emptyList())
Link copied to clipboard
@Serializable
data class TraktDeviceCode(val deviceCode: String, val userCode: String, val verificationUrl: String, val expiresIn: Int, val interval: Int)

Response from device code generation endpoint.

Link copied to clipboard
@Serializable
data class TraktDeviceCodeRequest(val clientId: String)

Request body for device code generation.

Link copied to clipboard
@Serializable
data class TraktDeviceTokenRequest(val code: String, val clientId: String, val clientSecret: String? = null)

Request body for polling device token.

Link copied to clipboard
@Serializable
data class TraktEpisode(val season: Int, val number: Int, val title: String? = null, val overview: String? = null, val ids: TraktItemIds? = null, val numberAbs: Int? = null, val firstAired: Instant? = null, val rating: Float? = null, val votes: Int? = null, val runtime: Int? = null)
Link copied to clipboard
@Serializable
data class TraktEpisodeActivities(val watchedAt: Instant? = null, val collectedAt: Instant? = null, val ratedAt: Instant? = null, val watchlistedAt: Instant? = null, val commentedAt: Instant? = null, val pausedAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktEpisodeProgress(val number: Int, val completed: Boolean = false, val lastWatchedAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktFavoriteItem(val rank: Int = 0, val id: Long = 0, val listedAt: Instant? = null, val notes: String? = null, val type: TraktMediaType? = null, val movie: TraktMovie? = null, val show: TraktShow? = null) : TraktMediaItem

Response item from users/favorites endpoints.

Link copied to clipboard
@Serializable
data class TraktFavoritesActivities(val updatedAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktFollower(val followedAt: Instant? = null, val user: TraktUser? = null)
Link copied to clipboard
@Serializable
data class TraktFollowRequest(val id: Int, val requestedAt: Instant, val user: TraktUser)
Link copied to clipboard
@Serializable
data class TraktFollowResponse(val approvedAt: Instant? = null, val user: TraktUser? = null)
Link copied to clipboard
@Serializable
data class TraktGenre(val name: String, val slug: String)
Link copied to clipboard
@Serializable
enum TraktGrantType : Enum<TraktGrantType>
Link copied to clipboard
@Serializable
data class TraktHiddenItem(val hiddenAt: Instant? = null, val type: TraktMediaType? = null, val movie: TraktMovie? = null, val show: TraktShow? = null, val season: TraktSeason? = null) : TraktMediaItem

Response item from users/hidden endpoints.

Link copied to clipboard

Hidden section types for users/hidden/{section} endpoint.

Link copied to clipboard
@Serializable
data class TraktHistoryItem(val id: String? = null, val watchedAt: Instant? = null, val action: String? = null, val type: TraktMediaType, val movie: TraktMovie? = null, val show: TraktShow? = null, val episode: TraktEpisode? = null)
Link copied to clipboard
sealed interface TraktIds
Link copied to clipboard
Link copied to clipboard
@Serializable
data class TraktItemIds(val trakt: Int? = null, val slug: String? = null, val tmdb: Int? = null, val tvdb: Int? = null, val imdb: String? = null) : TraktIds
Link copied to clipboard
@Serializable
data class TraktLanguage(val name: String, val code: String)
Link copied to clipboard
@Serializable
data class TraktLastActivities(val all: Instant, val movies: TraktMovieActivities? = null, val episodes: TraktEpisodeActivities? = null, val shows: TraktShowActivities? = null, val seasons: TraktSeasonActivities? = null, val comments: TraktCommentActivities? = null, val lists: TraktListActivities? = null, val watchlist: TraktWatchlistActivities? = null, val favorites: TraktFavoritesActivities? = null, val account: TraktAccountActivities? = null, val savedFilters: TraktSavedFiltersActivities? = null, val notes: TraktNotesActivities? = null)
Link copied to clipboard
@Serializable
data class TraktLike(val likedAt: Instant, val type: String, val list: TraktList? = null, val comment: TraktComment? = null)
Link copied to clipboard
@Serializable
data class TraktList(val name: String? = null, val ids: TraktListIds? = null, val privacy: TraktListPrivacy? = null)
Link copied to clipboard
@Serializable
data class TraktListActivities(val likedAt: Instant? = null, val updatedAt: Instant? = null, val commentedAt: Instant? = null)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class TraktListIds(val trakt: Int? = null, val slug: String? = null)
Link copied to clipboard

Item types for user list items. Includes person in addition to media types.

Link copied to clipboard
Link copied to clipboard
@Serializable
enum TraktListPrivacy : Enum<TraktListPrivacy>
Link copied to clipboard
@Serializable
enum TraktListType : Enum<TraktListType>
Link copied to clipboard
sealed interface TraktMediaItem

Common interface for media items returned from sync and user endpoints. All implementations contain at least movie and show fields.

Link copied to clipboard
@Serializable
enum TraktMediaType : Enum<TraktMediaType>
Link copied to clipboard
@Serializable
data class TraktMovie(val title: String? = null, val year: Int? = null, val overview: String? = null, val runtime: Int? = null, val ids: TraktItemIds? = null, val tagline: String? = null, val released: String? = null, val certification: String? = null, val country: String? = null, val trailer: String? = null, val homepage: String? = null, val status: String? = null, val rating: Float? = null, val votes: Int? = null, val commentCount: Int? = null, val language: String? = null, val genres: List<String> = emptyList())
Link copied to clipboard
@Serializable
data class TraktMovieActivities(val watchedAt: Instant? = null, val collectedAt: Instant? = null, val ratedAt: Instant? = null, val watchlistedAt: Instant? = null, val favoritedAt: Instant? = null, val recommendationsAt: Instant? = null, val commentedAt: Instant? = null, val pausedAt: Instant? = null, val hiddenAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktMovieUpdate(val updatedAt: Instant, val movie: TraktMovie)
Link copied to clipboard
@Serializable
data class TraktNetwork(val name: String, val ids: TraktNetworkIds? = null)
Link copied to clipboard
@Serializable
data class TraktNetworkIds(val trakt: Int? = null, val slug: String? = null, val tmdb: Int? = null)
Link copied to clipboard
@Serializable
data class TraktNotesActivities(val updatedAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktPerson(val name: String, val ids: TraktPersonIds, val biography: String? = null, val birthday: String? = null, val death: LocalDate? = null, val birthplace: String? = null, val homepage: String? = null)
Link copied to clipboard
@Serializable
data class TraktPersonIds(val trakt: Int, val slug: String? = null, val tmdb: Int? = null, val imdb: String? = null, val tvrage: String? = null) : TraktIds
Link copied to clipboard
@Serializable
data class TraktPersonMovieCastCredit(val character: String? = null, val characters: List<String> = emptyList(), val movie: TraktMovie)
Link copied to clipboard
@Serializable
data class TraktPersonMovieCredits(val cast: List<TraktPersonMovieCastCredit> = emptyList(), val crew: TraktPersonMovieCrewCredits? = null)

Credits for a person in movies.

Link copied to clipboard
@Serializable
data class TraktPersonMovieCrewCredit(val job: String? = null, val jobs: List<String> = emptyList(), val movie: TraktMovie)
Link copied to clipboard
@Serializable
data class TraktPersonMovieCrewCredits(val production: List<TraktPersonMovieCrewCredit> = emptyList(), val art: List<TraktPersonMovieCrewCredit> = emptyList(), val crew: List<TraktPersonMovieCrewCredit> = emptyList(), val costumeMakeUp: List<TraktPersonMovieCrewCredit> = emptyList(), val directing: List<TraktPersonMovieCrewCredit> = emptyList(), val writing: List<TraktPersonMovieCrewCredit> = emptyList(), val sound: List<TraktPersonMovieCrewCredit> = emptyList(), val camera: List<TraktPersonMovieCrewCredit> = emptyList(), val visualEffects: List<TraktPersonMovieCrewCredit> = emptyList(), val lighting: List<TraktPersonMovieCrewCredit> = emptyList(), val editing: List<TraktPersonMovieCrewCredit> = emptyList())
Link copied to clipboard
@Serializable
data class TraktPersonShowCastCredit(val character: String? = null, val characters: List<String> = emptyList(), val episodeCount: Int? = null, val seriesRegular: Boolean? = null, val show: TraktShow)
Link copied to clipboard
@Serializable
data class TraktPersonShowCredits(val cast: List<TraktPersonShowCastCredit> = emptyList(), val crew: TraktPersonShowCrewCredits? = null)

Credits for a person in TV shows.

Link copied to clipboard
@Serializable
data class TraktPersonShowCrewCredit(val job: String? = null, val jobs: List<String> = emptyList(), val episodeCount: Int? = null, val show: TraktShow)
Link copied to clipboard
@Serializable
data class TraktPersonShowCrewCredits(val production: List<TraktPersonShowCrewCredit> = emptyList(), val art: List<TraktPersonShowCrewCredit> = emptyList(), val crew: List<TraktPersonShowCrewCredit> = emptyList(), val costumeMakeUp: List<TraktPersonShowCrewCredit> = emptyList(), val directing: List<TraktPersonShowCrewCredit> = emptyList(), val writing: List<TraktPersonShowCrewCredit> = emptyList(), val sound: List<TraktPersonShowCrewCredit> = emptyList(), val camera: List<TraktPersonShowCrewCredit> = emptyList(), val visualEffects: List<TraktPersonShowCrewCredit> = emptyList(), val lighting: List<TraktPersonShowCrewCredit> = emptyList(), val editing: List<TraktPersonShowCrewCredit> = emptyList())
Link copied to clipboard
@Serializable
data class TraktPlaybackItem(val id: Int, val progress: Float, val pausedAt: Instant, val type: TraktMediaType, val movie: TraktMovie? = null, val episode: TraktEpisode? = null, val show: TraktShow? = null)
Link copied to clipboard
@Serializable
data class TraktPopularList(val likeCount: Int = 0, val commentCount: Int = 0, val list: TraktList? = null)
Link copied to clipboard
@Serializable
data class TraktPostComment(val comment: String, val spoiler: Boolean, val movie: TraktMovie? = null, val show: TraktShow? = null, val episode: TraktEpisode? = null, val season: TraktSeason? = null)
Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
data class TraktRating(val rating: Double, val votes: Int, val distribution: TraktRatingDistribution? = null)
Link copied to clipboard
@Serializable
data class TraktRatingDistribution(val rating1: Int = 0, val rating2: Int = 0, val rating3: Int = 0, val rating4: Int = 0, val rating5: Int = 0, val rating6: Int = 0, val rating7: Int = 0, val rating8: Int = 0, val rating9: Int = 0, val rating10: Int = 0)
Link copied to clipboard
@Serializable
data class TraktRelease(val country: String, val certification: String? = null, val releaseDate: String? = null, val releaseType: String? = null, val note: String? = null)
Link copied to clipboard
@Serializable
data class TraktSavedFiltersActivities(val updatedAt: Instant? = null)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class TraktScrobbleEpisode(val season: Int? = null, val number: Int? = null, val ids: TraktItemIds? = null)
Link copied to clipboard
@Serializable
data class TraktScrobbleMovie(val title: String? = null, val year: Int? = null, val ids: TraktItemIds)
Link copied to clipboard
@Serializable
data class TraktScrobbleRequest(val movie: TraktScrobbleMovie? = null, val episode: TraktScrobbleEpisode? = null, val show: TraktScrobbleShow? = null, val progress: Float, val appVersion: String? = null, val appDate: String? = null)
Link copied to clipboard
@Serializable
data class TraktScrobbleResponse(val id: Long, val action: TraktScrobbleAction, val progress: Float, val sharing: TraktSharing? = null, val movie: TraktMovie? = null, val episode: TraktEpisode? = null, val show: TraktShow? = null)
Link copied to clipboard
@Serializable
data class TraktScrobbleShow(val title: String? = null, val year: Int? = null, val ids: TraktItemIds)
Link copied to clipboard
@Serializable
data class TraktSearchQuery(val query: String? = null, val years: String? = null, val genres: String? = null, val languages: String? = null, val countries: String? = null, val runtimes: String? = null, val ratings: String? = null, val certifications: String? = null, val networks: String? = null, val status: String? = null, val extended: TraktExtended? = null, val page: Int? = null, val limit: Int? = null)
Link copied to clipboard
@Serializable
data class TraktSearchResult(val type: TraktMediaType, val movie: TraktMovie? = null, val show: TraktShow? = null, val episode: TraktEpisode? = null)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class TraktSeason(val number: Int, val ids: TraktItemIds? = null, val rating: Float? = null, val votes: Int? = null, val episodeCount: Int? = null, val airedEpisodes: Int? = null, val title: String? = null, val overview: String? = null, val network: String? = null, val firstAired: Instant? = null, val updatedAt: Instant? = null, val episodes: List<TraktEpisode>? = null)
Link copied to clipboard
@Serializable
data class TraktSeasonActivities(val ratedAt: Instant? = null, val watchlistedAt: Instant? = null, val commentedAt: Instant? = null, val hiddenAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktSeasonProgress(val number: Int, val title: String? = null, val aired: Int = 0, val completed: Int = 0, val episodes: List<TraktEpisodeProgress> = emptyList())
Link copied to clipboard
@Serializable
data class TraktSharing(val facebook: Boolean, val twitter: Boolean, val tumblr: Boolean)
Link copied to clipboard
@Serializable
data class TraktShow(val title: String? = null, val overview: String? = null, val homepage: String? = null, val certification: String? = null, val country: String? = null, val year: Int? = null, val ids: TraktItemIds? = null, val network: String? = null, val airedEpisodes: Int? = null, val firstAired: Instant? = null, val runtime: Int? = null, val rating: Float? = null, val votes: Int? = null, val status: TraktShowStatus? = null, val airs: TraktAirs? = null, val genres: List<String> = emptyList())
Link copied to clipboard
@Serializable
data class TraktShowActivities(val ratedAt: Instant? = null, val watchlistedAt: Instant? = null, val favoritedAt: Instant? = null, val recommendationsAt: Instant? = null, val commentedAt: Instant? = null, val hiddenAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktShowProgress(val aired: Int = 0, val completed: Int = 0, val lastWatchedAt: Instant? = null, val resetAt: Instant? = null, val seasons: List<TraktSeasonProgress> = emptyList(), val hiddenSeasons: List<TraktSeason> = emptyList(), val nextEpisode: TraktEpisode? = null, val lastEpisode: TraktEpisode? = null)
Link copied to clipboard
@Serializable
enum TraktShowStatus : Enum<TraktShowStatus>
Link copied to clipboard
@Serializable
data class TraktShowUpdate(val updatedAt: Instant, val show: TraktShow)
Link copied to clipboard
@Serializable
data class TraktStats(val watchers: Int = 0, val plays: Int = 0, val collectors: Int = 0, val collectedEpisodes: Int = 0, val comments: Int = 0, val lists: Int = 0, val votes: Int = 0, val favorited: Int = 0)

Statistics for a movie, show, season, or episode.

Link copied to clipboard
@Serializable
data class TraktStudio(val name: String, val country: String? = null, val ids: TraktStudioIds? = null)
Link copied to clipboard
@Serializable
data class TraktStudioIds(val trakt: Int? = null, val slug: String? = null, val tmdb: Int? = null)
Link copied to clipboard
@Serializable
data class TraktSyncEpisode(val ids: TraktItemIds? = null, val number: Int? = null, val rating: Int? = null, val watchedAt: Instant? = null, val collectedAt: Instant? = null, val ratedAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktSyncErrors(val movies: List<TraktSyncMovie> = emptyList(), val shows: List<TraktSyncShow> = emptyList(), val seasons: List<TraktSyncSeason> = emptyList(), val episodes: List<TraktSyncEpisode> = emptyList(), val people: List<TraktSyncPerson> = emptyList(), val ids: List<Long> = emptyList())
Link copied to clipboard
sealed interface TraktSyncItem
Link copied to clipboard
@Serializable
data class TraktSyncItems(var movies: List<TraktSyncMovie>? = null, var shows: List<TraktSyncShow>? = null, var episodes: List<TraktSyncEpisode>? = null, var people: List<TraktSyncPerson>? = null, var ids: List<Long>? = null)
Link copied to clipboard
@Serializable
data class TraktSyncMovie(val ids: TraktItemIds, val rating: Int? = null, val watchedAt: Instant? = null, val collectedAt: Instant? = null, val ratedAt: Instant? = null) : TraktSyncItem
Link copied to clipboard
@Serializable
data class TraktSyncPerson(val ids: TraktPersonIds, val name: String? = null)
Link copied to clipboard
@Serializable
data class TraktSyncResponse(val added: TraktSyncStats? = null, val existing: TraktSyncStats? = null, val deleted: TraktSyncStats? = null, val notFound: TraktSyncErrors? = null)
Link copied to clipboard
@Serializable
data class TraktSyncSeason(val ids: TraktItemIds? = null, val number: Int? = null, val rating: Int? = null, val watchedAt: Instant? = null, val collectedAt: Instant? = null, val ratedAt: Instant? = null, val episodes: List<TraktSyncEpisode> = emptyList()) : TraktSyncItem
Link copied to clipboard
@Serializable
data class TraktSyncShow(val ids: TraktItemIds, val rating: Int? = null, val watchedAt: Instant? = null, val collectedAt: Instant? = null, val ratedAt: Instant? = null, val seasons: List<TraktSyncSeason>? = null) : TraktSyncItem
Link copied to clipboard
@Serializable
data class TraktSyncStats(val movies: Int = 0, val shows: Int = 0, val seasons: Int = 0, val episodes: Int = 0)
Link copied to clipboard
@Serializable
data class TraktTokenRefreshRequest(val clientId: String? = null, val clientSecret: String? = null, val redirectUri: String? = null, val grantType: TraktGrantType? = null, val refreshToken: String? = null, val code: String? = null)
Link copied to clipboard
@Serializable
data class TraktTokenRevokeRequest(val token: String, val clientId: String? = null, val clientSecret: String? = null)

Request body for revoking a token.

Link copied to clipboard
@Serializable
data class TraktTranslation(val title: String? = null, val overview: String? = null, val tagline: String? = null, val language: String, val country: String? = null)
Link copied to clipboard
@Serializable
data class TraktTrendingList(val likeCount: Int = 0, val commentCount: Int = 0, val list: TraktList? = null)
Link copied to clipboard
@Serializable
data class TraktTrendingMovie(val watchers: Int, val movie: TraktMovie)
Link copied to clipboard
@Serializable
data class TraktTrendingShow(val show: TraktShow? = null, val watchers: Int? = null)
Link copied to clipboard
@Serializable
data class TraktUser(val userName: String? = null, val name: String? = null, val location: String? = null, val about: String? = null, val vip: Boolean = false, val joinedAt: Instant? = null, val vipEp: Boolean = false, val ids: TraktUserIds? = null, val vipOg: Boolean = false, val images: TraktUserImage? = null)

VIP: If a user is a regular VIP. VIP_EP: If a user is an execute producer.

Link copied to clipboard
@Serializable
data class TraktUserIds(val slug: String)
Link copied to clipboard
@Serializable
data class TraktUserImage(val avatar: TraktAvatar? = null)
Link copied to clipboard
@Serializable
data class TraktUserListItem(val id: Long, val rank: Int, val listedAt: Instant, val type: TraktListItemType, val movie: TraktMovie? = null, val show: TraktShow? = null, val season: TraktSeason? = null, val episode: TraktEpisode? = null, val person: TraktPerson? = null)
Link copied to clipboard
@Serializable
data class TraktUserSettings(val user: TraktUser, val account: TraktAccount)
Link copied to clipboard
value class TraktUserSlug(val name: String)
Link copied to clipboard
@Serializable
data class TraktUserStats(val rating: Int? = null)
Link copied to clipboard
@Serializable
data class TraktWatchedEpisode(val number: Int, val plays: Int = 0, val lastWatchedAt: Instant? = null)

Episode data from sync/watched/shows endpoint. Contains the episode number, play count, and last watched timestamp.

Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
data class TraktWatchedSeason(val number: Int, val episodes: List<TraktWatchedEpisode> = emptyList())

Season data from sync/watched/shows endpoint. Contains only the season number and list of watched episodes.

Link copied to clipboard
@Serializable
data class TraktWatching(val expiresAt: Instant? = null, val startedAt: Instant? = null, val action: String? = null, val type: TraktMediaType, val movie: TraktMovie? = null, val show: TraktShow? = null, val episode: TraktEpisode? = null)

Response from users/{id}/watching endpoint. Returns what a user is currently watching. If they are not watching anything, the API returns 204 No Content.

Link copied to clipboard
@Serializable
data class TraktWatchlistActivities(val updatedAt: Instant? = null)
Link copied to clipboard
@Serializable
data class TraktWatchlistItem(val rank: Int = 0, val id: Long = 0, val listedAt: Instant? = null, val notes: String? = 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/watchlist endpoints.