LunaEvent: add sleep event
This commit is contained in:
@@ -30,6 +30,7 @@ class LunaEvent: Comparable<LunaEvent> {
|
||||
const val TYPE_FOOD = "FOOD"
|
||||
const val TYPE_PUKE = "PUKE"
|
||||
const val TYPE_BATH = "BATH"
|
||||
const val TYPE_SLEEP = "SLEEP"
|
||||
}
|
||||
|
||||
private val jo: JSONObject
|
||||
@@ -111,6 +112,7 @@ class LunaEvent: Comparable<LunaEvent> {
|
||||
TYPE_FOOD -> R.string.event_food_type
|
||||
TYPE_PUKE -> R.string.event_puke_type
|
||||
TYPE_BATH -> R.string.event_bath_type
|
||||
TYPE_SLEEP -> R.string.event_sleep_type
|
||||
else -> R.string.event_unknown_type
|
||||
}
|
||||
)
|
||||
@@ -134,6 +136,7 @@ class LunaEvent: Comparable<LunaEvent> {
|
||||
TYPE_FOOD -> R.string.event_food_desc
|
||||
TYPE_PUKE -> R.string.event_puke_desc
|
||||
TYPE_BATH -> R.string.event_bath_desc
|
||||
TYPE_SLEEP -> R.string.event_sleep_desc
|
||||
else -> R.string.event_unknown_desc
|
||||
}
|
||||
)
|
||||
@@ -149,6 +152,7 @@ class LunaEvent: Comparable<LunaEvent> {
|
||||
TYPE_DIAPERCHANGE_PEE,
|
||||
TYPE_PUKE -> R.string.log_amount_dialog_description
|
||||
TYPE_WEIGHT -> R.string.log_weight_dialog_description
|
||||
TYPE_SLEEP -> R.string.log_sleep_dialog_description
|
||||
else -> R.string.log_unknown_dialog_description
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user