- moved tests
- some other minor changes
This commit is contained in:
parent
996417bb47
commit
6ad35510f3
|
@ -1,6 +1,7 @@
|
|||
package info.nightscout.androidaps.plugins.pump.omnipod.events
|
||||
|
||||
import info.nightscout.androidaps.events.Event
|
||||
import info.nightscout.androidaps.plugins.pump.common.events.EventRileyLinkDeviceStatusChange
|
||||
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkError
|
||||
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkServiceState
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.defs.PodDeviceState
|
||||
|
@ -9,18 +10,13 @@ import info.nightscout.androidaps.plugins.pump.omnipod.defs.state.PodSessionStat
|
|||
/**
|
||||
* Created by andy on 4.8.2019
|
||||
*/
|
||||
class EventOmnipodDeviceStatusChange : Event {
|
||||
class EventOmnipodDeviceStatusChange : EventRileyLinkDeviceStatusChange {
|
||||
|
||||
var rileyLinkServiceState: RileyLinkServiceState? = null
|
||||
var rileyLinkError: RileyLinkError? = null
|
||||
var podSessionState: PodSessionState? = null
|
||||
var errorDescription: String? = null
|
||||
var podDeviceState: PodDeviceState? = null
|
||||
|
||||
@JvmOverloads
|
||||
constructor(rileyLinkServiceState: RileyLinkServiceState?, rileyLinkError: RileyLinkError? = null) {
|
||||
this.rileyLinkServiceState = rileyLinkServiceState
|
||||
this.rileyLinkError = rileyLinkError
|
||||
constructor(rileyLinkServiceState: RileyLinkServiceState?, rileyLinkError: RileyLinkError? = null) : super(rileyLinkServiceState, rileyLinkError) {
|
||||
}
|
||||
|
||||
constructor(podSessionState: PodSessionState?) {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
# danars-support-lib
|
|
@ -2,26 +2,32 @@ package info.nightscout.androidaps.plugins.pump.common.events
|
|||
|
||||
import info.nightscout.androidaps.events.Event
|
||||
import info.nightscout.androidaps.plugins.pump.common.defs.PumpDeviceState
|
||||
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkError
|
||||
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkServiceState
|
||||
|
||||
class EventRileyLinkDeviceStatusChange : Event {
|
||||
open class EventRileyLinkDeviceStatusChange : Event {
|
||||
|
||||
private var rileyLinkServiceState: info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkServiceState? = null
|
||||
private var rileyLinkError: info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkError? = null
|
||||
var rileyLinkServiceState: RileyLinkServiceState? = null
|
||||
var rileyLinkError: RileyLinkError? = null
|
||||
|
||||
private var pumpDeviceState: info.nightscout.androidaps.plugins.pump.common.defs.PumpDeviceState? = null
|
||||
private var errorDescription: String? = null
|
||||
var pumpDeviceState: PumpDeviceState? = null
|
||||
var errorDescription: String? = null
|
||||
|
||||
constructor() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
constructor(rileyLinkServiceState: info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkServiceState?, rileyLinkError: info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkError?) {
|
||||
constructor(rileyLinkServiceState: RileyLinkServiceState?, rileyLinkError: RileyLinkError?) {
|
||||
this.rileyLinkServiceState = rileyLinkServiceState
|
||||
this.rileyLinkError = rileyLinkError
|
||||
}
|
||||
|
||||
constructor(pumpDeviceState: info.nightscout.androidaps.plugins.pump.common.defs.PumpDeviceState?) {
|
||||
constructor(pumpDeviceState: PumpDeviceState?) {
|
||||
this.pumpDeviceState = pumpDeviceState
|
||||
}
|
||||
|
||||
constructor(pumpDeviceState: info.nightscout.androidaps.plugins.pump.common.defs.PumpDeviceState?, errorDescription: String?) {
|
||||
constructor(pumpDeviceState: PumpDeviceState?, errorDescription: String?) {
|
||||
this.pumpDeviceState = pumpDeviceState
|
||||
this.errorDescription = errorDescription
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue