Class MessageS2CCreateCharacterNACK

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

public class MessageS2CCreateCharacterNACK extends Message
This message indicate the client that the server has reject its create character Message
See Also:
Message
  • Constructor Details

    • MessageS2CCreateCharacterNACK

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

      public MessageS2CCreateCharacterNACK(Channel source, String character, Result resolution)
      Constructor with a TCP/IP source/destination of the message and the reason to deny character creation.
      Parameters:
      source - The TCP/IP address associated to this message
      character - name of character
      resolution - the reason to deny the login
  • Method Details

    • getResolutionCode

      public Result getResolutionCode()
      This method returns the resolution of the login event
      Returns:
      a byte representing the resolution given.
    • getResolution

      public String getResolution()
      This method returns a String that represent the resolution given to the login event
      Returns:
      a string representing the resolution.
    • 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