lilypad.client.connect.api.request.impl
Class AsProxyRequest
java.lang.Object
lilypad.client.connect.api.request.impl.AsProxyRequest
- All Implemented Interfaces:
- Request<AsProxyResult>
public class AsProxyRequest
- extends java.lang.Object
- implements Request<AsProxyResult>
Request to be assigned the role of a proxy on the network.
Constructor Summary |
AsProxyRequest(int port,
java.lang.String motd,
java.lang.String version,
int maximumPlayers)
Shortcut to dictate that the network should assume it's ip
address. |
AsProxyRequest(java.lang.String ip,
int port,
java.lang.String motd,
java.lang.String version,
int maximumPlayers)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsProxyRequest
public AsProxyRequest(int port,
java.lang.String motd,
java.lang.String version,
int maximumPlayers)
- Shortcut to dictate that the network should assume it's ip
address.
- Parameters:
port
- of this specific proxymotd
- of this specific proxyversion
- of this specific proxymaximumPlayers
- of this specific proxy
AsProxyRequest
public AsProxyRequest(java.lang.String ip,
int port,
java.lang.String motd,
java.lang.String version,
int maximumPlayers)
- Parameters:
ip
- of this specific proxy, null if the network should
assume it's ip addressport
- of this specific proxymotd
- of this specific proxyversion
- of this specific proxymaximumPlayers
- of this specific proxy
getResult
public java.lang.Class<AsProxyResult> getResult()
- Specified by:
getResult
in interface Request<AsProxyResult>
- Returns:
- accompanying result of the request
getIp
public java.lang.String getIp()
- Returns:
- the ip address of this specific proxy, null if the
network should assume it's ip address
getPort
public int getPort()
- Returns:
- the port number of this specific proxy
getMotd
public java.lang.String getMotd()
- Returns:
- the motd of this specific proxy
getVersion
public java.lang.String getVersion()
- Returns:
- the version of this specific proxy
getMaximumPlayers
public int getMaximumPlayers()
- Returns:
- the maximum players of this specific proxy