Package marauroa.common.net.message
Class MessageP2SCreateAccount
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageP2SCreateAccount
- All Implemented Interfaces:
Serializable
This message indicate the server to create an account.
- See Also:
Message
-
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
ConstructorDescriptionConstructor for allowing creation of an empty messageMessageP2SCreateAccount(Channel source, String credentials, String forwardedFor, String username, String password, String email)
Constructor with a TCP/IP source/destination of the message and username, password and email associated to the account to be created. -
Method Summary
Modifier and TypeMethodDescriptionReturns the credentialsgetEmail()
Returns the account associated email.the ip-address this request is forwarded forReturns desired account's passwordReturns desired account's usernamevoid
Serialize the object from an ObjectInputtoString()
This method returns a String that represent the objectvoid
writeObject(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, readFromMap, requiresPerception, setChannel, setClientID, setProtocolVersion, writeToJson
-
Constructor Details
-
MessageP2SCreateAccount
public MessageP2SCreateAccount()Constructor for allowing creation of an empty message -
MessageP2SCreateAccount
public MessageP2SCreateAccount(Channel source, String credentials, String forwardedFor, String username, String password, String email)Constructor with a TCP/IP source/destination of the message and username, password and email associated to the account to be created.- Parameters:
source
- The TCP/IP address associated to this messagecredentials
- authenticationforwardedFor
- forwarded forusername
- desired usernamepassword
- desired passwordemail
- email of the player
-
-
Method Details
-
getCredentials
Returns the credentials- Returns:
- the credentials
-
getForwardedFor
the ip-address this request is forwarded for- Returns:
- IP-address
-
getUsername
Returns desired account's username- Returns:
- desired account's username
-
getPassword
Returns desired account's password- Returns:
- desired account's password
-
getEmail
Returns the account associated email.- Returns:
- the account associated email.
-
toString
This method returns a String that represent the object -
writeObject
Description copied from class:Message
Serialize the object into an ObjectOutput- Specified by:
writeObject
in interfaceSerializable
- Overrides:
writeObject
in classMessage
- Parameters:
out
- the output serializer.- Throws:
IOException
- if the serializations fails
-
readObject
Description copied from class:Message
Serialize the object from an ObjectInput- Specified by:
readObject
in interfaceSerializable
- Overrides:
readObject
in classMessage
- Parameters:
in
- the input serializer- Throws:
IOException
- if the serializations fails
-