fr.paris.lutece.plugins.chat.business
Class ChatEntry

java.lang.Object
  extended by fr.paris.lutece.plugins.chat.business.ChatEntry

public class ChatEntry
extends java.lang.Object

This class represents an entry in the chat.


Field Summary
static int TYPE_MESSAGE
           
static int TYPE_NOTIFICATION
           
 
Constructor Summary
ChatEntry(java.lang.String strChatMessage)
          Creates a new ChatEntry object.
ChatEntry(java.lang.String strNickname, java.lang.String strChatMessage)
          Creates a new ChatEntry object.
ChatEntry(java.lang.String strNickname, java.lang.String strChatMessage, int nEntryType)
          Creates a new ChatEntry object.
 
Method Summary
 java.lang.String getChatMessage()
          Returns the message of this Chat entry
 java.lang.String getNickname()
          Returns the nick name of this chat entry
 long getTime()
          Returns the date of this chat entry
 int getType()
          Returns the type of this chat entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_MESSAGE

public static final int TYPE_MESSAGE
See Also:
Constant Field Values

TYPE_NOTIFICATION

public static final int TYPE_NOTIFICATION
See Also:
Constant Field Values
Constructor Detail

ChatEntry

public ChatEntry(java.lang.String strNickname,
                 java.lang.String strChatMessage,
                 int nEntryType)
Creates a new ChatEntry object.

Parameters:
strNickname - The nick name of the user
strChatMessage - The message
nEntryType - The type of entry

ChatEntry

public ChatEntry(java.lang.String strNickname,
                 java.lang.String strChatMessage)
Creates a new ChatEntry object.

Parameters:
strNickname - The nick name of the user
strChatMessage - The message

ChatEntry

public ChatEntry(java.lang.String strChatMessage)
Creates a new ChatEntry object.

Parameters:
strChatMessage - The message
Method Detail

getNickname

public java.lang.String getNickname()
Returns the nick name of this chat entry

Returns:
The nick name as a String

getChatMessage

public java.lang.String getChatMessage()
Returns the message of this Chat entry

Returns:
The message as a String

getType

public int getType()
Returns the type of this chat entry

Returns:
The type as an int

getTime

public long getTime()
Returns the date of this chat entry

Returns:
The date


Copyright © 2010 Mairie de Paris. All Rights Reserved.