RuffyCommandsV1Impl: Return error for unsupported commands
This commit is contained in:
parent
dafb6d225b
commit
a5ce3f85f6
1 changed files with 6 additions and 3 deletions
|
@ -83,19 +83,22 @@ public class RuffyCommandsV1Impl implements RuffyCommands {
|
||||||
return delegate.readHistory(request);
|
return delegate.readHistory(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Not supported by RuffyScripter */
|
||||||
@Override
|
@Override
|
||||||
public CommandResult readBasalProfile() {
|
public CommandResult readBasalProfile() {
|
||||||
return delegate.readBasalProfile();
|
return new CommandResult().success(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Not supported by RuffyScripter */
|
||||||
@Override
|
@Override
|
||||||
public CommandResult setBasalProfile(BasalProfile basalProfile) {
|
public CommandResult setBasalProfile(BasalProfile basalProfile) {
|
||||||
return delegate.setBasalProfile(basalProfile);
|
return new CommandResult().success(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Not supported by RuffyScripter */
|
||||||
@Override
|
@Override
|
||||||
public CommandResult setDateAndTime() {
|
public CommandResult setDateAndTime() {
|
||||||
return delegate.setDateAndTime();
|
return new CommandResult().success(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue