TraktNote

@Serializable
data class TraktNote(val id: Long = 0, val notes: String = "", val spoiler: Boolean = false, val privacy: String = "private", val createdAt: Instant? = null, val updatedAt: Instant? = null)

A note resource as returned by the single-note endpoints (POST /notes, GET /notes/{id}, PUT /notes/{id}). The list endpoint (GET /users/{id}/notes) wraps this inside TraktNoteItem.note.

Constructors

Link copied to clipboard
constructor(id: Long = 0, notes: String = "", spoiler: Boolean = false, privacy: String = "private", createdAt: Instant? = null, updatedAt: Instant? = null)

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant?
Link copied to clipboard
@SerialName(value = "id")
val id: Long
Link copied to clipboard
@SerialName(value = "notes")
val notes: String
Link copied to clipboard
@SerialName(value = "privacy")
val privacy: String
Link copied to clipboard
@SerialName(value = "spoiler")
val spoiler: Boolean
Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: Instant?