public class AdHocChatRoomMessageDeliveredEvent
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 participant 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 participant of the ad-hoc chat room
to all current participants.
|
Constructor and Description |
---|
AdHocChatRoomMessageDeliveredEvent(AdHocChatRoom 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.
|
AdHocChatRoom |
getSourceAdHocChatRoom()
Returns the AdHocChatRoom that triggered this event.
|
java.util.Date |
getTimestamp()
A timestamp indicating the exact date when the event occurred.
|
public static final int CONVERSATION_MESSAGE_DELIVERED
public static final int ACTION_MESSAGE_DELIVERED
public AdHocChatRoomMessageDeliveredEvent(AdHocChatRoom source, java.util.Date timestamp, Message message, int eventType)
source
- the AdHocChatRoom 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 AdHocChatRoom getSourceAdHocChatRoom()
public int getEventType()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.