RuffyCommandsV1Impl: Return error for unsupported commands

This commit is contained in:
Johannes Mockenhaupt 2017-11-19 23:13:20 +01:00
parent dafb6d225b
commit a5ce3f85f6
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -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