Class MessageS2CCreateAccountACK

java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageS2CCreateAccountACK
All Implemented Interfaces:
Serializable

public class MessageS2CCreateAccountACK extends Message
This message indicate the client that the server has accepted its create account Message
See Also:
Message
  • Constructor Details

    • MessageS2CCreateAccountACK

      public MessageS2CCreateAccountACK()
      Constructor for allowing creation of an empty message
    • MessageS2CCreateAccountACK

      public MessageS2CCreateAccountACK(Channel source, String username)
      Constructor with a TCP/IP source/destination of the message and the confirmed username
      Parameters:
      source - The TCP/IP address associated to this message
      username - The confirmed username from server.
  • Method Details

    • getUsername

      public String getUsername()
      Returns the username created by the server.
      Returns:
      the username created by the server.
    • toString

      public String toString()
      This method returns a String that represent the object
      Overrides:
      toString in class Message
      Returns:
      a string representing the object.
    • writeObject

      public void writeObject(OutputSerializer out) throws IOException
      Description copied from class: Message
      Serialize the object into an ObjectOutput
      Specified by:
      writeObject in interface Serializable
      Overrides:
      writeObject in class Message
      Parameters:
      out - the output serializer.
      Throws:
      IOException - if the serializations fails
    • readObject

      public void readObject(InputSerializer in) throws IOException
      Description copied from class: Message
      Serialize the object from an ObjectInput
      Specified by:
      readObject in interface Serializable
      Overrides:
      readObject in class Message
      Parameters:
      in - the input serializer
      Throws:
      IOException - if the serializations fails
    • writeToJson

      public void writeToJson(StringBuilder out)
      Description copied from class: Message
      Serialize the object to json
      Overrides:
      writeToJson in class Message
      Parameters:
      out - output buffer