Class FolderEvent
- java.lang.Object
-
- microsoft.exchange.webservices.data.notification.NotificationEvent
-
- microsoft.exchange.webservices.data.notification.FolderEvent
-
public class FolderEvent extends NotificationEvent
Represents an event that applies to a folder.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFolderEvent(EventType eventType, Date timestamp)Initializes a new instance.FolderEvent(EventType eventType, FolderId folderId, FolderId parentFolderId)Initializes a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FolderIdgetFolderId()Gets the Id of the folder this event applies to.FolderIdgetOldFolderId()gets the Id of the folder that was moved or copied.intgetUnreadCount()Gets the new number of unread messages.protected voidinternalLoadFromXml(EwsServiceXmlReader reader)Load from XML.-
Methods inherited from class microsoft.exchange.webservices.data.notification.NotificationEvent
getEventType, getOldParentFolderId, getParentFolderId, getTimestamp, loadFromXml, setOldParentFolderId, setParentFolderId
-
-
-
-
Constructor Detail
-
FolderEvent
protected FolderEvent(EventType eventType, Date timestamp)
Initializes a new instance.- Parameters:
eventType- the event typetimestamp- the timestamp
-
FolderEvent
public FolderEvent(EventType eventType, FolderId folderId, FolderId parentFolderId)
Initializes a new instance.- Parameters:
eventType- the event typefolderId- of the folder that this event refers toparentFolderId- of the folder this event refers to
-
-
Method Detail
-
internalLoadFromXml
protected void internalLoadFromXml(EwsServiceXmlReader reader) throws Exception
Load from XML.- Overrides:
internalLoadFromXmlin classNotificationEvent- Parameters:
reader- the reader- Throws:
Exception- the exception
-
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
-
-