mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-20 10:30:07 +01:00
Added Serializable to ChecklistItem
This commit is contained in:
parent
487350b0da
commit
932699a0ba
@ -3,8 +3,16 @@ package com.simplemobiletools.notes.pro.models
|
||||
import com.simplemobiletools.commons.helpers.AlphanumericComparator
|
||||
import com.simplemobiletools.commons.helpers.SORT_BY_TITLE
|
||||
import com.simplemobiletools.commons.helpers.SORT_DESCENDING
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class ChecklistItem(
|
||||
val id: Int,
|
||||
val dateCreated: Long = 0L,
|
||||
var title: String,
|
||||
var isDone: Boolean
|
||||
) : Comparable<ChecklistItem> {
|
||||
|
||||
data class ChecklistItem(val id: Int, val dateCreated: Long = 0L, var title: String, var isDone: Boolean) : Comparable<ChecklistItem> {
|
||||
companion object {
|
||||
var sorting = 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user