diff --git a/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/CommandResult.java b/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/CommandResult.java index 360c171102..eb66fe9d2d 100644 --- a/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/CommandResult.java +++ b/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/CommandResult.java @@ -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; diff --git a/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/RuffyCommands.java b/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/RuffyCommands.java index 2daaf4655e..e955e64a0a 100644 --- a/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/RuffyCommands.java +++ b/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/RuffyCommands.java @@ -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(); diff --git a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/commands/ReadReservoirLevelAndLastBolus.java b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/commands/ReadReservoirLevelAndLastBolus.java index 1ace3f5a77..d6f5736394 100644 --- a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/commands/ReadReservoirLevelAndLastBolus.java +++ b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/commands/ReadReservoirLevelAndLastBolus.java @@ -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{}"; + } }