public class MessageWaitingEvent
extends java.util.EventObject
Constructor and Description |
---|
MessageWaitingEvent(ProtocolProviderService source,
OperationSetMessageWaiting.MessageType messageType,
java.lang.String account,
int unreadMessages,
int readMessages,
int unreadUrgentMessages,
int readUrgentMessages)
Constructs the Event with the given source, typically the provider and
number of messages.
|
MessageWaitingEvent(ProtocolProviderService source,
OperationSetMessageWaiting.MessageType messageType,
java.lang.String account,
int unreadMessages,
int readMessages,
int unreadUrgentMessages,
int readUrgentMessages,
java.util.List<NotificationMessage> messages)
Constructs the Event with the given source, typically the provider and
number of messages.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccount()
The URI we can use to reach messages from provider that is firing
the event.
|
java.util.Iterator<NotificationMessage> |
getMessages() |
OperationSetMessageWaiting.MessageType |
getMessageType()
The message type for this event.
|
int |
getReadMessages()
Number of old/read messages.
|
int |
getReadUrgentMessages()
Number of old/read messages.
|
ProtocolProviderService |
getSourceProvider()
Returns the ProtocolProviderService which originated this event.
|
int |
getUnreadMessages()
Number of new/unread messages.
|
int |
getUnreadUrgentMessages()
Number of new/unread urgent messages.
|
public MessageWaitingEvent(ProtocolProviderService source, OperationSetMessageWaiting.MessageType messageType, java.lang.String account, int unreadMessages, int readMessages, int unreadUrgentMessages, int readUrgentMessages)
messageType
- the message type for this event.source
- the protocol provider from which this event is coming.account
- the account URI we can use to reach the messages.unreadMessages
- the unread messages.readMessages
- the read messages.unreadUrgentMessages
- the unread urgent messages.readUrgentMessages
- the read urgent messages.public MessageWaitingEvent(ProtocolProviderService source, OperationSetMessageWaiting.MessageType messageType, java.lang.String account, int unreadMessages, int readMessages, int unreadUrgentMessages, int readUrgentMessages, java.util.List<NotificationMessage> messages)
messageType
- the message type for this event.source
- the protocol provider from which this event is coming.account
- the account URI we can use to reach the messages.unreadMessages
- the unread messages.readMessages
- the read messages.unreadUrgentMessages
- the unread urgent messages.readUrgentMessages
- the read urgent messages.messages
- the list of messages that this event is about.public ProtocolProviderService getSourceProvider()
public java.lang.String getAccount()
public int getUnreadMessages()
public int getReadMessages()
public int getUnreadUrgentMessages()
public int getReadUrgentMessages()
public OperationSetMessageWaiting.MessageType getMessageType()
public java.util.Iterator<NotificationMessage> getMessages()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.