-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathReminder.kt
More file actions
30 lines (26 loc) · 570 Bytes
/
Reminder.kt
File metadata and controls
30 lines (26 loc) · 570 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.philkes.notallyx.data.model
import android.os.Parcelable
import java.util.Date
import kotlinx.parcelize.Parcelize
@Parcelize
data class Reminder(
var id: Long,
var dateTime: Date,
var repetition: Repetition?,
var isNotificationVisible: Boolean = false,
) : Parcelable
@Parcelize
data class Repetition(
var value: Int,
var unit: RepetitionTimeUnit,
var occurrence: Int? = null,
var dayOfWeek: Int? = null,
) : Parcelable
enum class RepetitionTimeUnit {
MINUTES,
HOURS,
DAYS,
WEEKS,
MONTHS,
YEARS,
}