Class Proxy
java.lang.Object
net.ME1312.SubServers.Client.Common.Network.API.Proxy
Simplified Proxy Data Class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the Display Name of this ProxygetExtra()
Get the extra value sectionGet an extra valuegetName()
Get the Name of this ProxyGet the players on this proxyvoid
getPlayers
(Consumer<Collection<RemotePlayer>> callback) Get the players on this proxygetRaw()
Get the raw representation of the Proxyfinal String
Get the Signature of this ObjectGets the SubData Client Channel IDslong
Get the Timestamp for when the data was last refreshedboolean
Determine if an extra value existsboolean
isMaster()
Determine if the proxy is the Master Proxyvoid
refresh()
Download a new copy of the data from SubData
-
Constructor Details
-
Proxy
Create an API representation of a Proxy- Parameters:
raw
- Raw representation of the Proxy
-
-
Method Details
-
equals
-
refresh
public void refresh()Download a new copy of the data from SubData -
getSubData
Gets the SubData Client Channel IDs- Returns:
- SubData Client Channel ID Array
-
getName
Get the Name of this Proxy- Returns:
- Name
-
getDisplayName
Get the Display Name of this Proxy- Returns:
- Display Name
-
isMaster
public boolean isMaster()Determine if the proxy is the Master Proxy- Returns:
- Master Proxy Status
-
getPlayers
Get the players on this proxy- Returns:
- Remote Player Collection
-
getPlayers
Get the players on this proxy- Parameters:
callback
- Remote Player Collection
-
getSignature
Get the Signature of this Object- Returns:
- Object Signature
-
getTimestamp
public long getTimestamp()Get the Timestamp for when the data was last refreshed- Returns:
- Data Timestamp
-
hasExtra
Determine if an extra value exists- Parameters:
handle
- Handle- Returns:
- Value Status
-
getExtra
Get an extra value- Parameters:
handle
- Handle- Returns:
- Value
-
getExtra
Get the extra value section- Returns:
- Extra Value Section
-
getRaw
Get the raw representation of the Proxy- Returns:
- Raw Proxy
-