From a5ce3f85f650dbf26b3d843064286ffc6b48755c Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 19 Nov 2017 23:13:20 +0100 Subject: [PATCH] RuffyCommandsV1Impl: Return error for unsupported commands --- .../de/jotomo/ruffyscripter/RuffyCommandsV1Impl.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyCommandsV1Impl.java b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyCommandsV1Impl.java index d788c7fade..fbdac36438 100644 --- a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyCommandsV1Impl.java +++ b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyCommandsV1Impl.java @@ -83,19 +83,22 @@ public class RuffyCommandsV1Impl implements RuffyCommands { return delegate.readHistory(request); } + /** Not supported by RuffyScripter */ @Override public CommandResult readBasalProfile() { - return delegate.readBasalProfile(); + return new CommandResult().success(false); } + /** Not supported by RuffyScripter */ @Override public CommandResult setBasalProfile(BasalProfile basalProfile) { - return delegate.setBasalProfile(basalProfile); + return new CommandResult().success(false); } + /** Not supported by RuffyScripter */ @Override public CommandResult setDateAndTime() { - return delegate.setDateAndTime(); + return new CommandResult().success(false); } @Override