netbattle.messages
Class BanMessage

java.lang.Object
  extended by netbattle.messages.NetMessage
      extended by netbattle.messages.BanMessage
All Implemented Interfaces:
java.io.Serializable

public class BanMessage
extends NetMessage

See Also:
Serialized Form

Field Summary
 
Fields inherited from class netbattle.messages.NetMessage
ACCEPT_CHALLENGE, ACCEPTED_CHALLENGE, ACTIVITY_MESSAGE, ADD_BATTLE, BAN_USER, BATTLE_END, BATTLE_READY, ERROR_LOG_MESSAGE, FIELD_TEXT, FINALISE_CHALLENGE, FIND_ALIASES_MESSAGE, INFORM_DAMAGE, ISSUE_CHALLENGE, JOIN_CHANNEL_MESSAGE, JOIN_SERVER, PARTY_MESSAGE, RATIO_REFRESH, REGISTER_ACCOUNT, REPLACE_POKEMON, REQUEST_MOVE, SELECTION_END, SPECTATOR_MESSAGE, STAT_REFRESH, STATUS_CHANGE, SUCCESS_MESSAGE, UPDATE_POKEMON_STATUS, USE_MOVE, USER_LIST, USER_TABLE, WELCOME_MESSAGE, WELCOME_TEXT_MESSAGE, WITHDRAW_CHALLENGE
 
Constructor Summary
BanMessage(java.lang.String user, long date)
          Create a new message that requests a ban or a kick.
 
Method Summary
 long getDate()
           
 int getMessage()
           
 java.lang.String getUser()
           
 
Methods inherited from class netbattle.messages.NetMessage
logInRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BanMessage

public BanMessage(java.lang.String user,
                  long date)
Create a new message that requests a ban or a kick.

Parameters:
date - the date to unban the user, or indicates that the user should be kicked if the value is -1. If this parameter is zero then the user is unbanned.
Method Detail

getMessage

public int getMessage()
Specified by:
getMessage in class NetMessage

getUser

public java.lang.String getUser()

getDate

public long getDate()