Add getId method

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2024-06-10 19:59:17 +07:00
parent 1b0bd5f9c6
commit 6f4d69d6f4
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307

View File

@ -161,5 +161,11 @@ public class BtcNodes {
", port='" + port + '\'' +
", operator='" + operator;
}
public String getId() {
String address = this.address == null ? "" : this.address + ", ";
String onionAddress = this.onionAddress == null ? "" : this.onionAddress;
return operator + ": [" + address + onionAddress + "]";
}
}
}