use of org.yamcs.protobuf.Rest.UpdateCommandHistoryRequest in project yamcs-studio by yamcs.
the class CommandingCatalogue method updateCommandComment.
public CompletableFuture<byte[]> updateCommandComment(String processor, CommandId cmdId, String newComment) {
String instance = ManagementCatalogue.getCurrentYamcsInstance();
YamcsClient yamcsClient = YamcsPlugin.getYamcsClient();
KeyValue keyValue = KeyValue.newBuilder().setKey("Comment").setValue(newComment).build();
UpdateCommandHistoryRequest request = UpdateCommandHistoryRequest.newBuilder().setCmdId(cmdId).addHistoryEntry(keyValue).build();
return yamcsClient.post("/processors/" + instance + "/" + processor + "/commandhistory" + cmdId.getCommandName(), request);
}
Aggregations