Note

@Serializable
data class Note(    val id: String,     val author: PandoroUser,     val content: String,     val creationDate: Long,     val markedAsDone: Boolean = false,     val markedAsDoneBy: PandoroUser? = null,     val markAsDoneDate: Long = -1)

The Note data class allow to represent a note data

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(    id: String,     author: PandoroUser,     content: String,     creationDate: Long,     markedAsDone: Boolean = false,     markedAsDoneBy: PandoroUser? = null,     markAsDoneDate: Long = -1)

Properties

Link copied to clipboard

The author of the note

Link copied to clipboard
@SerialName(value = "content_note")
val content: String

The content of the note

Link copied to clipboard
@SerialName(value = "creation_date")
val creationDate: Long

The date when the note has been created

Link copied to clipboard
val id: String

The identifier of the note

Link copied to clipboard
@SerialName(value = "marked_as_done_date")
val markAsDoneDate: Long

When the note has been completed

Link copied to clipboard
@SerialName(value = "marked_as_done")
val markedAsDone: Boolean = false

Whether the note has been completed

Link copied to clipboard
@SerialName(value = "marked_as_done_by")
val markedAsDoneBy: PandoroUser? = null

The user who completed the note

Functions

Link copied to clipboard

Method to calculated the days interval used to complete the note