/// <summary> /// Writes to XML. /// </summary> /// <param name="writer">The writer.</param> /// <param name="xmlElementName">Name of the XML element.</param> internal override void WriteToXml(EwsServiceXmlWriter writer, string xmlElementName) { writer.WriteStartElement(XmlNamespace.Types, xmlElementName); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.GroupIdentityType, this.IdentityType.ToString()); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.GroupIdentityValue, this.Value); writer.WriteEndElement(); }
/// <summary> /// Writes to XML. /// </summary> /// <param name="writer">The writer.</param> /// <param name="xmlElementName">Name of the XML element.</param> internal override void WriteToXml(EwsServiceXmlWriter writer, string xmlElementName) { writer.WriteStartElement(XmlNamespace.Types, xmlElementName); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.SortType, this.SortType.ToString()); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.FilterType, this.FilterType.ToString()); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.SortDirection, this.SortDirection.ToString()); writer.WriteEndElement(); }
/// <summary> /// Writes XML elements. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { if (!string.IsNullOrEmpty(this.mailboxSmtpAddress)) { writer.WriteElementValue( XmlNamespace.Messages, XmlElementNames.MailboxSmtpAddress, this.mailboxSmtpAddress); } }
/// <summary> /// Writes to XML. /// </summary> /// <param name="writer">The writer.</param> /// <param name="xmlElementName">Name of the XML element.</param> internal override void WriteToXml(EwsServiceXmlWriter writer, string xmlElementName) { writer.WriteStartElement(XmlNamespace.Types, xmlElementName); this.ConversationId.WriteToXml(writer); if (this.SyncState != null) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.SyncState, this.SyncState); } writer.WriteEndElement(); }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.RuleId, this.RuleId); }
/// <summary> /// Writes XML elements. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.OMEConfigurationXml, this.Xml); }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.EmailAddress, this.Address); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.RoutingType, this.RoutingType); }
/// <summary> /// Writes to XML. /// </summary> /// <param name="writer">The writer.</param> /// <param name="propertyBag">The property bag.</param> /// <param name="isUpdateOperation">Indicates whether the context is an update operation.</param> internal override void WritePropertyValueToXml( EwsServiceXmlWriter writer, PropertyBag propertyBag, bool isUpdateOperation) { object value = propertyBag[this]; if (value != null) { writer.WriteElementValue(XmlNamespace.Types, this.XmlElementName, this.Name, value); } }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { if (this.MinimumSize.HasValue) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.MinimumSize, this.MinimumSize.Value); } if (this.MaximumSize.HasValue) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.MaximumSize, this.MaximumSize.Value); } }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { if (this.Categories.Count > 0) { this.Categories.WriteToXml(writer, XmlElementNames.Categories); } if (this.ContainsBodyStrings.Count > 0) { this.ContainsBodyStrings.WriteToXml(writer, XmlElementNames.ContainsBodyStrings); } if (this.ContainsHeaderStrings.Count > 0) { this.ContainsHeaderStrings.WriteToXml(writer, XmlElementNames.ContainsHeaderStrings); } if (this.ContainsRecipientStrings.Count > 0) { this.ContainsRecipientStrings.WriteToXml(writer, XmlElementNames.ContainsRecipientStrings); } if (this.ContainsSenderStrings.Count > 0) { this.ContainsSenderStrings.WriteToXml(writer, XmlElementNames.ContainsSenderStrings); } if (this.ContainsSubjectOrBodyStrings.Count > 0) { this.ContainsSubjectOrBodyStrings.WriteToXml(writer, XmlElementNames.ContainsSubjectOrBodyStrings); } if (this.ContainsSubjectStrings.Count > 0) { this.ContainsSubjectStrings.WriteToXml(writer, XmlElementNames.ContainsSubjectStrings); } if (this.FlaggedForAction.HasValue) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.FlaggedForAction, this.FlaggedForAction.Value); } if (this.FromAddresses.Count > 0) { this.FromAddresses.WriteToXml(writer, XmlElementNames.FromAddresses); } if (this.FromConnectedAccounts.Count > 0) { this.FromConnectedAccounts.WriteToXml(writer, XmlElementNames.FromConnectedAccounts); } if (this.HasAttachments != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.HasAttachments, this.HasAttachments); } if (this.Importance.HasValue) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.Importance, this.Importance.Value); } if (this.IsApprovalRequest != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsApprovalRequest, this.IsApprovalRequest); } if (this.IsAutomaticForward != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsAutomaticForward, this.IsAutomaticForward); } if (this.IsAutomaticReply != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsAutomaticReply, this.IsAutomaticReply); } if (this.IsEncrypted != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsEncrypted, this.IsEncrypted); } if (this.IsMeetingRequest != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsMeetingRequest, this.IsMeetingRequest); } if (this.IsMeetingResponse != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsMeetingResponse, this.IsMeetingResponse); } if (this.IsNonDeliveryReport != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsNDR, this.IsNonDeliveryReport); } if (this.IsPermissionControlled != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsPermissionControlled, this.IsPermissionControlled); } if (this.isReadReceipt != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsReadReceipt, this.IsReadReceipt); } if (this.IsSigned != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsSigned, this.IsSigned); } if (this.IsVoicemail != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsVoicemail, this.IsVoicemail); } if (this.ItemClasses.Count > 0) { this.ItemClasses.WriteToXml(writer, XmlElementNames.ItemClasses); } if (this.MessageClassifications.Count > 0) { this.MessageClassifications.WriteToXml(writer, XmlElementNames.MessageClassifications); } if (this.NotSentToMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.NotSentToMe, this.NotSentToMe); } if (this.SentCcMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.SentCcMe, this.SentCcMe); } if (this.SentOnlyToMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.SentOnlyToMe, this.SentOnlyToMe); } if (this.SentToAddresses.Count > 0) { this.SentToAddresses.WriteToXml(writer, XmlElementNames.SentToAddresses); } if (this.SentToMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.SentToMe, this.SentToMe); } if (this.SentToOrCcMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.SentToOrCcMe, this.SentToOrCcMe); } if (this.Sensitivity.HasValue) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.Sensitivity, this.Sensitivity.Value); } if (this.WithinDateRange.Start.HasValue || this.WithinDateRange.End.HasValue) { this.WithinDateRange.WriteToXml(writer, XmlElementNames.WithinDateRange); } if (this.WithinSizeRange.MaximumSize.HasValue || this.WithinSizeRange.MinimumSize.HasValue) { this.WithinSizeRange.WriteToXml(writer, XmlElementNames.WithinSizeRange); } }
void WriteElementsToXml(EwsServiceXmlWriter writer) { this.itemId.WriteToXml(writer, XmlNamespace.Messages, XmlElementNames.ItemId); writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.DialString, dialString); }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.EmailAddress, this.Address); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.RoutingType, this.RoutingType); }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { if (!string.IsNullOrEmpty(this.Id)) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.RuleId, this.Id); } writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.DisplayName, this.DisplayName); writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.Priority, this.Priority); writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsEnabled, this.IsEnabled); writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsInError, this.IsInError); this.Conditions.WriteToXml(writer, XmlElementNames.Conditions); this.Exceptions.WriteToXml(writer, XmlElementNames.Exceptions); this.Actions.WriteToXml(writer, XmlElementNames.Actions); }
void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.ID, this.ID); }
void WriteElementsToXml(EwsServiceXmlWriter writer) { this.emailAddress.WriteToXml(writer, XmlNamespace.Messages, XmlElementNames.EmailAddress); writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.SharePointSiteUrl, this.sharePointSiteUrl.ToString()); writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.State, this.state.ToString()); }
/// <summary> /// Writes XML elements. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { UnifiedGroupIdentity groupIdentity = new UnifiedGroupIdentity(this.identityType, this.identityValue); groupIdentity.WriteToXml(writer, XmlElementNames.GroupIdentity); writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.LastVisitedTimeUtc, this.lastVisitedTimeUtc.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ")); }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.RuleId, this.RuleId); }
/// <summary> /// Writes XML elements. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteStartElement(XmlNamespace.Messages, XmlElementNames.RequestedGroupsSets); if (this.RequestedUnifiedGroupsSets != null) { this.RequestedUnifiedGroupsSets.ForEach((unifiedGroupsSet) => unifiedGroupsSet.WriteToXml(writer, XmlElementNames.RequestedUnifiedGroupsSetItem)); } writer.WriteEndElement(); if (!string.IsNullOrEmpty(this.UserSmtpAddress)) { writer.WriteElementValue(XmlNamespace.NotSpecified, XmlElementNames.UserSmtpAddress, this.UserSmtpAddress); } }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { if (this.Categories.Count > 0) { this.Categories.WriteToXml(writer, XmlElementNames.Categories); } if (this.ContainsBodyStrings.Count > 0) { this.ContainsBodyStrings.WriteToXml(writer, XmlElementNames.ContainsBodyStrings); } if (this.ContainsHeaderStrings.Count > 0) { this.ContainsHeaderStrings.WriteToXml(writer, XmlElementNames.ContainsHeaderStrings); } if (this.ContainsRecipientStrings.Count > 0) { this.ContainsRecipientStrings.WriteToXml(writer, XmlElementNames.ContainsRecipientStrings); } if (this.ContainsSenderStrings.Count > 0) { this.ContainsSenderStrings.WriteToXml(writer, XmlElementNames.ContainsSenderStrings); } if (this.ContainsSubjectOrBodyStrings.Count > 0) { this.ContainsSubjectOrBodyStrings.WriteToXml(writer, XmlElementNames.ContainsSubjectOrBodyStrings); } if (this.ContainsSubjectStrings.Count > 0) { this.ContainsSubjectStrings.WriteToXml(writer, XmlElementNames.ContainsSubjectStrings); } if (this.FlaggedForAction.HasValue) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.FlaggedForAction, this.FlaggedForAction.Value); } if (this.FromAddresses.Count > 0) { this.FromAddresses.WriteToXml(writer, XmlElementNames.FromAddresses); } if (this.FromConnectedAccounts.Count > 0) { this.FromConnectedAccounts.WriteToXml(writer, XmlElementNames.FromConnectedAccounts); } if (this.HasAttachments != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.HasAttachments, this.HasAttachments); } if (this.Importance.HasValue) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.Importance, this.Importance.Value); } if (this.IsApprovalRequest != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsApprovalRequest, this.IsApprovalRequest); } if (this.IsAutomaticForward != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsAutomaticForward, this.IsAutomaticForward); } if (this.IsAutomaticReply != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsAutomaticReply, this.IsAutomaticReply); } if (this.IsEncrypted != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsEncrypted, this.IsEncrypted); } if (this.IsMeetingRequest != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsMeetingRequest, this.IsMeetingRequest); } if (this.IsMeetingResponse != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsMeetingResponse, this.IsMeetingResponse); } if (this.IsNonDeliveryReport != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsNDR, this.IsNonDeliveryReport); } if (this.IsPermissionControlled != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsPermissionControlled, this.IsPermissionControlled); } if (this.isReadReceipt != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsReadReceipt, this.IsReadReceipt); } if (this.IsSigned != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsSigned, this.IsSigned); } if (this.IsVoicemail != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.IsVoicemail, this.IsVoicemail); } if (this.ItemClasses.Count > 0) { this.ItemClasses.WriteToXml(writer, XmlElementNames.ItemClasses); } if (this.MessageClassifications.Count > 0) { this.MessageClassifications.WriteToXml(writer, XmlElementNames.MessageClassifications); } if (this.NotSentToMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.NotSentToMe, this.NotSentToMe); } if (this.SentCcMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.SentCcMe, this.SentCcMe); } if (this.SentOnlyToMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.SentOnlyToMe, this.SentOnlyToMe); } if (this.SentToAddresses.Count > 0) { this.SentToAddresses.WriteToXml(writer, XmlElementNames.SentToAddresses); } if (this.SentToMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.SentToMe, this.SentToMe); } if (this.SentToOrCcMe != false) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.SentToOrCcMe, this.SentToOrCcMe); } if (this.Sensitivity.HasValue) { writer.WriteElementValue( XmlNamespace.Types, XmlElementNames.Sensitivity, this.Sensitivity.Value); } if (this.WithinDateRange.Start.HasValue || this.WithinDateRange.End.HasValue) { this.WithinDateRange.WriteToXml(writer, XmlElementNames.WithinDateRange); } if (this.WithinSizeRange.MaximumSize.HasValue || this.WithinSizeRange.MinimumSize.HasValue) { this.WithinSizeRange.WriteToXml(writer, XmlElementNames.WithinSizeRange); } }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.LobbyBypass, this.LobbyBypass); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.AccessLevel, this.AccessLevel); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.Presenters, this.Presenters); }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.Name, this.Name); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.EmailAddress, this.Address); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.RoutingType, this.RoutingType); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.MailboxType, this.MailboxType); if (this.Id != null) { this.Id.WriteToXml(writer, XmlElementNames.ItemId); } }
/// <summary> /// Writes elements to XML. /// </summary> /// <param name="writer">The writer.</param> internal override void WriteElementsToXml(EwsServiceXmlWriter writer) { writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.LobbyBypass, this.LobbyBypass); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.AccessLevel, this.AccessLevel); writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.Presenters, this.Presenters); }