package net.pterodactylus.fcp;
+import java.util.Optional;
+
/**
* The “GetNode” command returns the darknet or opennet noderef of the node,
* optionally including private and volatile data.
* <code>true</code> to include volatile data in the noderef
*/
public GetNode(Boolean giveOpennetRef, Boolean withPrivate, Boolean withVolatile) {
+ this(null, giveOpennetRef, withPrivate, withVolatile);
+ }
+
+ public GetNode(String identifier, Boolean giveOpennetRef, Boolean withPrivate, Boolean withVolatile) {
super("GetNode");
+ Optional.ofNullable(identifier).ifPresent(i -> setField("Identifier", i));
if (giveOpennetRef != null) {
setField("GiveOpennetRef", String.valueOf(giveOpennetRef));
}