Skip navigation links
Jitsi: the OpenSource Java VoIP and Instant Messaging client.
net.java.sip.communicator.service.protocol.event

Class MessageWaitingEvent

    • Constructor Detail

      • MessageWaitingEvent

        public 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.
        Parameters:
        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.
      • MessageWaitingEvent

        public 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.
        Parameters:
        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.
    • Method Detail

      • getSourceProvider

        public ProtocolProviderService getSourceProvider()
        Returns the ProtocolProviderService which originated this event.
        Returns:
        the source ProtocolProviderService
      • getAccount

        public java.lang.String getAccount()
        The URI we can use to reach messages from provider that is firing the event.
        Returns:
        account URI.
      • getUnreadMessages

        public int getUnreadMessages()
        Number of new/unread messages.
        Returns:
        Number of new/unread messages.
      • getReadMessages

        public int getReadMessages()
        Number of old/read messages.
        Returns:
        Number of old/read messages.
      • getUnreadUrgentMessages

        public int getUnreadUrgentMessages()
        Number of new/unread urgent messages.
        Returns:
        Number of new/unread urgent messages.
      • getReadUrgentMessages

        public int getReadUrgentMessages()
        Number of old/read messages.
        Returns:
        Number of old/read messages.
Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.