Class GetEventsResults
- java.lang.Object
-
- microsoft.exchange.webservices.data.notification.GetEventsResults
-
public final class GetEventsResults extends Object
Represents a collection of notification events.
-
-
Constructor Summary
Constructors Constructor Description GetEventsResults()Initializes a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<NotificationEvent>getAllEvents()Gets the collection of all events.Iterable<FolderEvent>getFolderEvents()Gets the collection of folder events.Iterable<ItemEvent>getItemEvents()Gets the collection of item events.StringgetNewWatermark()Gets the subscription's new watermark.StringgetPreviousWatermark()Gets the subscription's previous watermark.StringgetSubscriptionId()Gets the Id of the subscription the collection is associated with.protected static Map<String,EventType>getXmlElementNameToEventTypeMap()Gets the XML element name to event type mapping.booleanisMoreEventsAvailable()Gets a value indicating whether more events are available on the Exchange server.voidloadFromXml(EwsServiceXmlReader reader)Loads from XML.
-
-
-
Constructor Detail
-
GetEventsResults
public GetEventsResults()
Initializes a new instance.
-
-
Method Detail
-
getXmlElementNameToEventTypeMap
protected static Map<String,EventType> getXmlElementNameToEventTypeMap()
Gets the XML element name to event type mapping.- Returns:
- The XML element name to event type mapping.
-
loadFromXml
public void loadFromXml(EwsServiceXmlReader reader) throws Exception
Loads from XML.- Parameters:
reader- the reader- Throws:
Exception- the exception
-
getSubscriptionId
public String getSubscriptionId()
Gets the Id of the subscription the collection is associated with.- Returns:
- the subscription id
-
getPreviousWatermark
public String getPreviousWatermark()
Gets the subscription's previous watermark.- Returns:
- the previous watermark
-
getNewWatermark
public String getNewWatermark()
Gets the subscription's new watermark.- Returns:
- the new watermark
-
isMoreEventsAvailable
public boolean isMoreEventsAvailable()
Gets a value indicating whether more events are available on the Exchange server.- Returns:
- true, if is more events available
-
getFolderEvents
public Iterable<FolderEvent> getFolderEvents()
Gets the collection of folder events.- Returns:
- the folder events
-
getItemEvents
public Iterable<ItemEvent> getItemEvents()
Gets the collection of item events.- Returns:
- the item events
-
getAllEvents
public Collection<NotificationEvent> getAllEvents()
Gets the collection of all events.- Returns:
- the all events
-
-