Package marauroa.common.net.message
Class MessageC2SUpdateResponse
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageC2SUpdateResponse
- All Implemented Interfaces:
Serializable
Update response
-
Nested Class Summary
Nested classes/interfaces inherited from class marauroa.common.net.message.Message
Message.MessageType -
Field Summary
Fields inherited from class marauroa.common.net.message.Message
channel, clientid, CLIENTID_INVALID, protocolVersion, timestampMessage, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for allowing creation of an empty messageMessageC2SUpdateResponse(Channel source, String response)creates a new message -
Method Summary
Modifier and TypeMethodDescriptiongets the responsevoidreadFromMap(Map<String,Object> in)reads a message from a mapvoidSerialize the object from an ObjectInputtoString()voidwriteObject(OutputSerializer out)Serialize the object into an ObjectOutputMethods inherited from class marauroa.common.net.message.Message
getAddress, getChannel, getClientID, getMessageTimestamp, getProtocolVersion, getType, internalToString, isPerception, isSkippable, requiresPerception, setChannel, setClientID, setProtocolVersion, writeToJson
-
Constructor Details
-
MessageC2SUpdateResponse
public MessageC2SUpdateResponse()Constructor for allowing creation of an empty message -
MessageC2SUpdateResponse
creates a new message- Parameters:
source- socket channelresponse- response
-
-
Method Details
-
getResponse
gets the response- Returns:
- response
-
toString
-
writeObject
Description copied from class:MessageSerialize the object into an ObjectOutput- Specified by:
writeObjectin interfaceSerializable- Overrides:
writeObjectin classMessage- Parameters:
out- the output serializer.- Throws:
IOException- if the serializations fails
-
readObject
Description copied from class:MessageSerialize the object from an ObjectInput- Specified by:
readObjectin interfaceSerializable- Overrides:
readObjectin classMessage- Parameters:
in- the input serializer- Throws:
IOException- if the serializations fails
-
readFromMap
Description copied from class:Messagereads a message from a map- Overrides:
readFromMapin classMessage- Parameters:
in- Map to read from- Throws:
IOException- if the serializations fails
-