inf1010.pusle.chat
Class Message

java.lang.Object
  extended by inf1010.pusle.chat.Message

public class Message
extends java.lang.Object

A small class containing a packet.


Constructor Summary
Message(byte type, java.lang.String data)
          Creates a new message.
 
Method Summary
 java.lang.String getData()
          Gets this message's data.
 byte getType()
          Gets this message's type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(byte type,
               java.lang.String data)
Creates a new message.

Parameters:
type - the packet type for this message.
data - the data that was in the packet.
Method Detail

getType

public byte getType()
Gets this message's type.

Returns:
this message's type.

getData

public java.lang.String getData()
Gets this message's data.

Returns:
this message's data.