Small cleanups.
This commit is contained in:
parent
4ffdae4a8c
commit
9544b49a37
|
@ -9,7 +9,9 @@ public class CommandResult {
|
|||
/** Whether the command was executed successfully. */
|
||||
public boolean success;
|
||||
/** 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;
|
||||
/** Null unless an unhandled exception was raised. */
|
||||
public Exception exception;
|
||||
|
@ -23,7 +25,8 @@ public class CommandResult {
|
|||
public String duration;
|
||||
|
||||
/** 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;
|
||||
/** BolusCommand: if a cancel request was successful */
|
||||
public boolean wasSuccessfullyCancelled;
|
||||
|
|
|
@ -31,7 +31,6 @@ public interface RuffyCommands {
|
|||
|
||||
CommandResult getDateAndTime();
|
||||
|
||||
// TODO see how dana does this, autosync on DST change
|
||||
CommandResult setDateAndTime(Date date);
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ReadReservoirLevelAndLastBolus{}";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue