LoadNotificationEventFromXml method
void
LoadNotificationEventFromXml(
- EwsServiceXmlReader reader,
- String eventElementName,
- EventType? eventType,
- NotificationGroup notifications,
Implementation
/* private */
void LoadNotificationEventFromXml(
EwsServiceXmlReader reader,
String eventElementName,
EventType? eventType,
NotificationGroup notifications) {
DateTime? timestamp = reader.ReadElementValueWithNamespace<DateTime>(
XmlNamespace.Types, XmlElementNames.TimeStamp);
NotificationEvent notificationEvent;
reader.Read();
if (reader.LocalName == XmlElementNames.FolderId) {
notificationEvent = new FolderEvent(eventType, timestamp);
} else {
notificationEvent = new ItemEvent(eventType, timestamp);
}
notificationEvent.LoadFromXml(reader, eventElementName);
notifications.Events.add(notificationEvent);
}