jfreerails.network
Class SetPropertyMessage2Client

java.lang.Object
  extended by jfreerails.network.SetPropertyMessage2Client
All Implemented Interfaces:
java.io.Serializable, Message2Client, FreerailsSerializable

public class SetPropertyMessage2Client
extends java.lang.Object
implements Message2Client

A Message2Client that lets the server set a property (for example, the list of saved games available) on a client.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  int id
           
private  ClientControlInterface.ClientProperty key
           
private static long serialVersionUID
           
private  FreerailsSerializable value
           
 
Constructor Summary
SetPropertyMessage2Client(int id, ClientControlInterface.ClientProperty key, FreerailsSerializable value)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 MessageStatus execute(ClientControlInterface client)
          Executes this command on the specified ClientControlInterface.
 int getID()
          Returns the id of this command.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

id

private final int id

key

private final ClientControlInterface.ClientProperty key

value

private final FreerailsSerializable value
Constructor Detail

SetPropertyMessage2Client

public SetPropertyMessage2Client(int id,
                                 ClientControlInterface.ClientProperty key,
                                 FreerailsSerializable value)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

execute

public MessageStatus execute(ClientControlInterface client)
Description copied from interface: Message2Client
Executes this command on the specified ClientControlInterface.

Specified by:
execute in interface Message2Client

getID

public int getID()
Description copied from interface: Message2Client
Returns the id of this command.

Specified by:
getID in interface Message2Client

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object