de.kosi.chat
Class TextChatEvent
java.lang.Object
|
+--de.kosi.chat.ChatEvent
|
+--de.kosi.chat.TextChatEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class TextChatEvent
- extends ChatEvent
This class represents a text message in a chat channel.
Log-Einträge:
$Log: TextChatEvent.java,v $
Revision 1.2 2001/06/04 14:21:10 jiriki
Made source more comliant to coding guidelines.
Revision 1.1.1.1 2001/04/29 18:05:16 jiriki
Imported sources from zola.
Revision 1.5 2001/03/18 17:32:03 wombat
Changed database concept
Revision 1.4 2001/02/09 21:09:05 login
- updated documentation !!
Revision 1.3 2000/12/22 11:24:16 wombat
dokumentiert
Revision 1.2 2000/12/22 10:36:40 wombat
dokumentiert
- Version:
- $Revision: 1.2 $ ($Date: 2001/06/04 14:21:10 $)
- Author:
- Niklas, Timo, Ole
- See Also:
- Serialized Form
Constructor Summary |
TextChatEvent(java.lang.String user,
java.lang.String text,
int type)
Creates a new text chat event. |
Method Summary |
java.lang.String |
getText()
Returns the text of this event. |
int |
getType()
Returns the type of the text. |
java.lang.String |
getUser()
Returns the user, who sent this event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextChatEvent
public TextChatEvent(java.lang.String user,
java.lang.String text,
int type)
- Creates a new text chat event.
- Parameters:
user
- the nickname of the user, sending this message.text
- the message itself.type
- the type of the message.
getUser
public java.lang.String getUser()
- Returns the user, who sent this event.
- Returns:
- nickname of a user.
getText
public java.lang.String getText()
- Returns the text of this event.
- Returns:
- text of this event.
getType
public int getType()
- Returns the type of the text.
- Returns:
- Possible values for the type can be found in ChatChannel.
- See Also:
ChatChannel.ACTION
,
ChatChannel.SAY