TraktNoteItem

@Serializable
data class TraktNoteItem(val attachedTo: TraktNoteAttachedTo? = null, val type: String? = null, val movie: TraktMovie? = null, val show: TraktShow? = null, val season: TraktSeason? = null, val episode: TraktEpisode? = null, val person: TraktPerson? = null, val note: TraktNote? = null)

A single entry of the notes list endpoint (GET /users/{id}/notes) and the attached-item endpoint (GET /notes/{id}/item). It pairs the attachedTo context and the media item (movie/show/…) with the actual note. The note content is nested under note, NOT flattened into this object.

Constructors

Link copied to clipboard
constructor(attachedTo: TraktNoteAttachedTo? = null, type: String? = null, movie: TraktMovie? = null, show: TraktShow? = null, season: TraktSeason? = null, episode: TraktEpisode? = null, person: TraktPerson? = null, note: TraktNote? = null)

Properties

Link copied to clipboard
@SerialName(value = "attached_to")
val attachedTo: TraktNoteAttachedTo?
Link copied to clipboard
@SerialName(value = "episode")
val episode: TraktEpisode?
Link copied to clipboard
@SerialName(value = "movie")
val movie: TraktMovie?
Link copied to clipboard
@SerialName(value = "note")
val note: TraktNote?
Link copied to clipboard
@SerialName(value = "person")
val person: TraktPerson?
Link copied to clipboard
@SerialName(value = "season")
val season: TraktSeason?
Link copied to clipboard
@SerialName(value = "show")
val show: TraktShow?
Link copied to clipboard
@SerialName(value = "type")
val type: String?