Skip to content

Commit 932699a

Browse files
committed
Added Serializable to ChecklistItem
1 parent 487350b commit 932699a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/models/ChecklistItem.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@ package com.simplemobiletools.notes.pro.models
33
import com.simplemobiletools.commons.helpers.AlphanumericComparator
44
import com.simplemobiletools.commons.helpers.SORT_BY_TITLE
55
import com.simplemobiletools.commons.helpers.SORT_DESCENDING
6+
import kotlinx.serialization.Serializable
7+
8+
@Serializable
9+
data class ChecklistItem(
10+
val id: Int,
11+
val dateCreated: Long = 0L,
12+
var title: String,
13+
var isDone: Boolean
14+
) : Comparable<ChecklistItem> {
615

7-
data class ChecklistItem(val id: Int, val dateCreated: Long = 0L, var title: String, var isDone: Boolean) : Comparable<ChecklistItem> {
816
companion object {
917
var sorting = 0
1018
}

0 commit comments

Comments
 (0)