lilypad.client.connect.api.request.impl
Class NotifyPlayerRequest

java.lang.Object
  extended by lilypad.client.connect.api.request.impl.NotifyPlayerRequest
All Implemented Interfaces:
Request<NotifyPlayerResult>

public class NotifyPlayerRequest
extends java.lang.Object
implements Request<NotifyPlayerResult>

Request to notify the network that a player has been added or removed from our proxy.


Constructor Summary
NotifyPlayerRequest(boolean addOrRemove, java.lang.String player)
           
 
Method Summary
 java.lang.String getPlayer()
           
 java.lang.Class<NotifyPlayerResult> getResult()
           
 boolean isAdding()
           
 boolean isRemoving()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotifyPlayerRequest

public NotifyPlayerRequest(boolean addOrRemove,
                           java.lang.String player)
Parameters:
addOrRemove - true if adding, false if removing
player - in question
Method Detail

getResult

public java.lang.Class<NotifyPlayerResult> getResult()
Specified by:
getResult in interface Request<NotifyPlayerResult>
Returns:
accompanying result of the request

isAdding

public boolean isAdding()
Returns:
if this is a request to add

isRemoving

public boolean isRemoving()
Returns:
if this is a request to remove

getPlayer

public java.lang.String getPlayer()
Returns:
the player in question