- moved tests
- some other minor changes
This commit is contained in:
parent
996417bb47
commit
6ad35510f3
10 changed files with 17 additions and 16 deletions
|
@ -1,6 +1,7 @@
|
||||||
package info.nightscout.androidaps.plugins.pump.omnipod.events
|
package info.nightscout.androidaps.plugins.pump.omnipod.events
|
||||||
|
|
||||||
import info.nightscout.androidaps.events.Event
|
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.RileyLinkError
|
||||||
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkServiceState
|
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkServiceState
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.defs.PodDeviceState
|
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
|
* 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 podSessionState: PodSessionState? = null
|
||||||
var errorDescription: String? = null
|
|
||||||
var podDeviceState: PodDeviceState? = null
|
var podDeviceState: PodDeviceState? = null
|
||||||
|
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
constructor(rileyLinkServiceState: RileyLinkServiceState?, rileyLinkError: RileyLinkError? = null) {
|
constructor(rileyLinkServiceState: RileyLinkServiceState?, rileyLinkError: RileyLinkError? = null) : super(rileyLinkServiceState, rileyLinkError) {
|
||||||
this.rileyLinkServiceState = rileyLinkServiceState
|
|
||||||
this.rileyLinkError = rileyLinkError
|
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(podSessionState: PodSessionState?) {
|
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.events.Event
|
||||||
import info.nightscout.androidaps.plugins.pump.common.defs.PumpDeviceState
|
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
|
var rileyLinkServiceState: RileyLinkServiceState? = null
|
||||||
private var rileyLinkError: info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkError? = null
|
var rileyLinkError: RileyLinkError? = null
|
||||||
|
|
||||||
private var pumpDeviceState: info.nightscout.androidaps.plugins.pump.common.defs.PumpDeviceState? = null
|
var pumpDeviceState: PumpDeviceState? = null
|
||||||
private var errorDescription: String? = 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.rileyLinkServiceState = rileyLinkServiceState
|
||||||
this.rileyLinkError = rileyLinkError
|
this.rileyLinkError = rileyLinkError
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(pumpDeviceState: info.nightscout.androidaps.plugins.pump.common.defs.PumpDeviceState?) {
|
constructor(pumpDeviceState: PumpDeviceState?) {
|
||||||
this.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.pumpDeviceState = pumpDeviceState
|
||||||
this.errorDescription = errorDescription
|
this.errorDescription = errorDescription
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue