Class PeerData
- java.lang.Object
-
- com.syntifi.casper.sdk.model.peer.PeerData
-
public class PeerData extends java.lang.Object
Root class for a Casper peer info request- Since:
- 0.0.1
- See Also:
PeerData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PeerData.PeerDataBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PeerData.PeerDataBuilder
builder()
java.lang.String
getApiVersion()
The RPC API versionjava.util.List<PeerEntry>
getPeers()
List of @see PeerEntryvoid
setApiVersion(java.lang.String apiVersion)
The RPC API versionvoid
setPeers(java.util.List<PeerEntry> peers)
List of @see PeerEntry
-
-
-
Constructor Detail
-
PeerData
public PeerData(java.lang.String apiVersion, java.util.List<PeerEntry> peers)
-
PeerData
public PeerData()
-
-
Method Detail
-
builder
public static PeerData.PeerDataBuilder builder()
-
getApiVersion
public java.lang.String getApiVersion()
The RPC API version
-
getPeers
public java.util.List<PeerEntry> getPeers()
List of @see PeerEntry
-
setApiVersion
public void setApiVersion(java.lang.String apiVersion)
The RPC API version
-
setPeers
public void setPeers(java.util.List<PeerEntry> peers)
List of @see PeerEntry
-
-