AndroidAPS/app/src/main/java/info/nightscout/androidaps/events/EventNsFood.kt

21 lines
435 B
Kotlin
Raw Normal View History

2019-10-14 23:35:24 +02:00
package info.nightscout.androidaps.events
2020-01-01 23:23:16 +01:00
import org.json.JSONArray
2019-10-14 23:35:24 +02:00
/**
* Event which is published with data fetched from NightScout specific for the
* Food-class.
*
* Payload is the from NS retrieved JSON-String which should be handled by all
* subscriber.
*/
2020-01-01 23:23:16 +01:00
class EventNsFood(val mode: Int, val foods: JSONArray) : Event() {
2019-10-14 23:35:24 +02:00
companion object {
val ADD = 0
val UPDATE = 1
val REMOVE = 2
}
}