Small cleanups.
This commit is contained in:
parent
4ffdae4a8c
commit
9544b49a37
|
@ -9,7 +9,9 @@ public class CommandResult {
|
||||||
/** Whether the command was executed successfully. */
|
/** Whether the command was executed successfully. */
|
||||||
public boolean success;
|
public boolean success;
|
||||||
/** Whether any changes were made, e.g. if a the request was to cancel a running TBR,
|
/** Whether any changes were made, e.g. if a the request was to cancel a running TBR,
|
||||||
* but not TBR was active, this will be false. */
|
* but not TBR was active, this will be false.
|
||||||
|
* @deprecated for bolus, set tbr, set basal profile, set time: check with a second command, don't rely on this*/
|
||||||
|
@Deprecated
|
||||||
public boolean enacted;
|
public boolean enacted;
|
||||||
/** Null unless an unhandled exception was raised. */
|
/** Null unless an unhandled exception was raised. */
|
||||||
public Exception exception;
|
public Exception exception;
|
||||||
|
@ -23,7 +25,8 @@ public class CommandResult {
|
||||||
public String duration;
|
public String duration;
|
||||||
|
|
||||||
/** Whether an alert (warning only) was confirmed. This can happen during boluses.
|
/** Whether an alert (warning only) was confirmed. This can happen during boluses.
|
||||||
* Request error history to see which errors occured. */
|
* Request error history to see which errors occurred. */
|
||||||
|
// TODO check usages
|
||||||
public boolean alertConfirmed;
|
public boolean alertConfirmed;
|
||||||
/** BolusCommand: if a cancel request was successful */
|
/** BolusCommand: if a cancel request was successful */
|
||||||
public boolean wasSuccessfullyCancelled;
|
public boolean wasSuccessfullyCancelled;
|
||||||
|
|
|
@ -31,7 +31,6 @@ public interface RuffyCommands {
|
||||||
|
|
||||||
CommandResult getDateAndTime();
|
CommandResult getDateAndTime();
|
||||||
|
|
||||||
// TODO see how dana does this, autosync on DST change
|
|
||||||
CommandResult setDateAndTime(Date date);
|
CommandResult setDateAndTime(Date date);
|
||||||
|
|
||||||
void requestPairing();
|
void requestPairing();
|
||||||
|
|
|
@ -53,4 +53,8 @@ public class ReadReservoirLevelAndLastBolus extends BaseCommand {
|
||||||
return new Date(currentYear - 1900, date.getMonth() - 1, date.getDay(), time.getHour(), time.getMinute()).getTime();
|
return new Date(currentYear - 1900, date.getMonth() - 1, date.getDay(), time.getHour(), time.getMinute()).getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "ReadReservoirLevelAndLastBolus{}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue