@Override public void addedCommand(PreparedCommand pc) { CommandHistoryEntry entry = CommandHistoryEntry.newBuilder() .setCommandId(pc.getCommandId()) .addAllAttr(pc.getAttributes()) .build(); doSend(entry); }
@Override public void updatedCommand(CommandId cmdId, long changeDate, String key, Value value) { CommandHistoryAttribute cha = CommandHistoryAttribute.newBuilder() .setName(key) .setValue(ValueUtility.toGbp(value)) .build(); CommandHistoryEntry entry = CommandHistoryEntry.newBuilder().setCommandId(cmdId).addAttr(cha).build(); doSend(entry); }