313233343536373839
return new CommandResultCallback() { @Override public void onCommandCallback(int result, int status) { CommandResult r = CommandResult.fromType(result); CommandStatus s = CommandStatus.fromType(status); p.set(new CommandResponse(r,s)); } }; }