Task

@Serializable
data class Task(val id: String = "", val description: String = "", val isCompleted: Boolean = false, val dueDate: Long? = null, val recurrence: String = "", val expiredExecuted: Boolean = false, val completedOn: Long = 0)(source)

A task entry inside a TaskList.

id is generated client-side at creation time so the editor can reorder tasks optimistically without round-tripping. recurrence is a cron expression — empty means a one-shot task; a non-empty value causes the server-side TaskListExpiryTask to re-arm the task on its schedule.

Constructors

Link copied to clipboard
constructor(id: String = "", description: String = "", isCompleted: Boolean = false, dueDate: Long? = null, recurrence: String = "", expiredExecuted: Boolean = false, completedOn: Long = 0)

Properties

Link copied to clipboard

Epoch millis the user checked the task. 0 means "never completed".

Link copied to clipboard

User-typed task body.

Link copied to clipboard

Optional due date as epoch millis — null if the task has no deadline.

Link copied to clipboard

true after the server's expiry tick has fired children for this task at least once — prevents duplicate child execution if multiple ticks see the same expired task.

Link copied to clipboard
val id: String

Stable per-task UUID — used for reordering and re-emission.

Link copied to clipboard

true once the user has checked the task off.

Link copied to clipboard

Cron expression for recurring tasks. Empty string for one-shot tasks.