Add reservoirLevel to PumpState.
This commit is contained in:
parent
785a01a056
commit
de693c0f76
1 changed files with 18 additions and 1 deletions
|
@ -20,7 +20,8 @@ public class PumpState {
|
||||||
public String errorMsg;
|
public String errorMsg;
|
||||||
public boolean suspended;
|
public boolean suspended;
|
||||||
public boolean lowBattery;
|
public boolean lowBattery;
|
||||||
public int insulinState;
|
public int insulinState = -1;
|
||||||
|
public int reservoirLevel = -1;
|
||||||
|
|
||||||
public PumpState tbrActive(boolean tbrActive) {
|
public PumpState tbrActive(boolean tbrActive) {
|
||||||
this.tbrActive = tbrActive;
|
this.tbrActive = tbrActive;
|
||||||
|
@ -52,6 +53,21 @@ public class PumpState {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PumpState lowBattery(boolean lowBattery) {
|
||||||
|
this.lowBattery = lowBattery;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PumpState insulinState(int insulinState) {
|
||||||
|
this.insulinState = insulinState;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PumpState reservoirLevel(int reservoirLevel) {
|
||||||
|
this.reservoirLevel = reservoirLevel;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "PumpState{" +
|
return "PumpState{" +
|
||||||
|
@ -63,6 +79,7 @@ public class PumpState {
|
||||||
", suspended=" + suspended +
|
", suspended=" + suspended +
|
||||||
", lowBattery=" + lowBattery +
|
", lowBattery=" + lowBattery +
|
||||||
", insulinState=" + insulinState +
|
", insulinState=" + insulinState +
|
||||||
|
", reversoirLevel=" + reservoirLevel +
|
||||||
", timestamp=" + timestamp +
|
", timestamp=" + timestamp +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue