Class FolderEvent

    • Constructor Detail

      • FolderEvent

        protected FolderEvent​(EventType eventType,
                              Date timestamp)
        Initializes a new instance.
        Parameters:
        eventType - the event type
        timestamp - the timestamp
      • FolderEvent

        public FolderEvent​(EventType eventType,
                           FolderId folderId,
                           FolderId parentFolderId)
        Initializes a new instance.
        Parameters:
        eventType - the event type
        folderId - of the folder that this event refers to
        parentFolderId - of the folder this event refers to
    • Method Detail

      • getFolderId

        public FolderId getFolderId()
        Gets the Id of the folder this event applies to.
        Returns:
        folderId
      • getOldFolderId

        public FolderId getOldFolderId()
        gets the Id of the folder that was moved or copied. OldFolderId is only meaningful when EventType is equal to either EventType.Moved or EventType.Copied. For all other event types, OldFolderId is null.
        Returns:
        oldFolderId
      • getUnreadCount

        public int getUnreadCount()
        Gets the new number of unread messages. This is is only meaningful when EventType is equal to EventType.Modified. For all other event types, UnreadCount is null.
        Returns:
        unreadCount