public class ChatRoomMessageDeliveredEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_MESSAGE_DELIVERED
An event type indicating that the message being received is a special
message that sent by either another member or the server itself,
indicating that some kind of action (other than the delivery of a
conversation message) has occurred.
|
static int |
CONVERSATION_MESSAGE_DELIVERED
An event type indicating that the message being received is a standard
conversation message sent by another member of the chat room to all
current participants.
|
Constructor and Description |
---|
ChatRoomMessageDeliveredEvent(ChatRoom source,
java.util.Date timestamp,
Message message,
int eventType)
Creates a MessageDeliveredEvent representing delivery of the
source message to the specified to contact.
|
Modifier and Type | Method and Description |
---|---|
int |
getEventType()
Returns the type of message event represented by this event instance.
|
Message |
getMessage()
Returns the received message.
|
ChatRoom |
getSourceChatRoom()
Returns the ChatRoom that triggered this event.
|
java.util.Date |
getTimestamp()
A timestamp indicating the exact date when the event occurred.
|
boolean |
isHistoryMessage()
Is current event for history message.
|
void |
setHistoryMessage(boolean historyMessage)
Changes property, whether this event is for a history message.
|
public static final int CONVERSATION_MESSAGE_DELIVERED
public static final int ACTION_MESSAGE_DELIVERED
public ChatRoomMessageDeliveredEvent(ChatRoom source, java.util.Date timestamp, Message message, int eventType)
source
- the ChatRoom which triggered this event.timestamp
- a date indicating the exact moment when the event
occurredmessage
- the message that triggered this event.eventType
- indicating the type of the delivered event. It's
either an ACTION_MESSAGE_DELIVERED or a CONVERSATION_MESSAGE_DELIVERED.public Message getMessage()
public java.util.Date getTimestamp()
public ChatRoom getSourceChatRoom()
public int getEventType()
public boolean isHistoryMessage()
public void setHistoryMessage(boolean historyMessage)
historyMessage
- whether its event for history message.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.