microsoft.exchange.webservices.data
Class FolderEvent

java.lang.Object
  extended by microsoft.exchange.webservices.data.NotificationEvent
      extended by microsoft.exchange.webservices.data.FolderEvent

public class FolderEvent
extends NotificationEvent

Represents an event that applies to a folder.


Constructor Summary
protected FolderEvent(EventType eventType, java.util.Date timestamp)
          Initializes a new instance.
 
Method Summary
 FolderId getFolderId()
          Gets the Id of the folder this event applies to.
 FolderId getOldFolderId()
          gets the Id of the folder that was moved or copied.
 int getUnreadCount()
          Gets the new number of unread messages.
protected  void internalLoadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Load from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.NotificationEvent
getEventType, getOldParentFolderId, getParentFolderId, getTimestamp, loadFromXml, setOldParentFolderId, setParentFolderId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FolderEvent

protected FolderEvent(EventType eventType,
                      java.util.Date timestamp)
Initializes a new instance.

Parameters:
eventType - the event type
timestamp - the timestamp
Method Detail

internalLoadFromXml

protected void internalLoadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                            throws java.lang.Exception
Load from XML.

Overrides:
internalLoadFromXml in class NotificationEvent
Parameters:
reader - the reader
Throws:
java.lang.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