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