private DateTime?Read6_NullableOfDateTime(bool checkType) { DateTime?result = null; if (base.ReadNull()) { return(result); } result = new DateTime?(XmlSerializationReader.ToDateTime(base.Reader.ReadElementString())); return(result); }
private Status Read4_Status(bool isNullable, bool checkType) { XmlQualifiedName xmlQualifiedName = checkType ? base.GetXsiType() : null; bool flag = false; if (isNullable) { flag = base.ReadNull(); } if (checkType && !(xmlQualifiedName == null) && (xmlQualifiedName.Name != this.id1_Status || xmlQualifiedName.Namespace != this.id2_Item)) { throw base.CreateUnknownTypeException(xmlQualifiedName); } if (flag) { return(null); } Status status = new Status(); bool[] array = new bool[11]; while (base.Reader.MoveToNextAttribute()) { if (!base.IsXmlnsAttribute(base.Reader.Name)) { base.UnknownNode(status); } } base.Reader.MoveToElement(); if (base.Reader.IsEmptyElement) { base.Reader.Skip(); return(status); } base.Reader.ReadStartElement(); base.Reader.MoveToContent(); int num = 0; int readerCount = base.ReaderCount; while (base.Reader.NodeType != XmlNodeType.EndElement && base.Reader.NodeType != XmlNodeType.None) { if (base.Reader.NodeType == XmlNodeType.Element) { if (!array[0] && base.Reader.LocalName == this.id3_Result && base.Reader.NamespaceURI == this.id2_Item) { status.Result = this.Read1_StatusResult(base.Reader.ReadElementString()); array[0] = true; } else if (!array[1] && base.Reader.LocalName == this.id4_Type && base.Reader.NamespaceURI == this.id2_Item) { status.Type = this.Read2_SyncTreeType(base.Reader.ReadElementString()); array[1] = true; } else if (!array[2] && base.Reader.LocalName == this.id5_Name && base.Reader.NamespaceURI == this.id2_Item) { status.Name = base.Reader.ReadElementString(); array[2] = true; } else if (!array[3] && base.Reader.LocalName == this.id6_FailureDetails && base.Reader.NamespaceURI == this.id2_Item) { status.FailureDetails = base.Reader.ReadElementString(); array[3] = true; } else if (!array[4] && base.Reader.LocalName == this.id7_StartUTC && base.Reader.NamespaceURI == this.id2_Item) { status.StartUTC = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[4] = true; } else if (!array[5] && base.Reader.LocalName == this.id8_EndUTC && base.Reader.NamespaceURI == this.id2_Item) { status.EndUTC = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[5] = true; } else if (!array[6] && base.Reader.LocalName == this.id9_Added && base.Reader.NamespaceURI == this.id2_Item) { status.Added = XmlConvert.ToInt32(base.Reader.ReadElementString()); array[6] = true; } else if (!array[7] && base.Reader.LocalName == this.id10_Deleted && base.Reader.NamespaceURI == this.id2_Item) { status.Deleted = XmlConvert.ToInt32(base.Reader.ReadElementString()); array[7] = true; } else if (!array[8] && base.Reader.LocalName == this.id11_Updated && base.Reader.NamespaceURI == this.id2_Item) { status.Updated = XmlConvert.ToInt32(base.Reader.ReadElementString()); array[8] = true; } else if (!array[9] && base.Reader.LocalName == this.id12_Scanned && base.Reader.NamespaceURI == this.id2_Item) { status.Scanned = XmlConvert.ToInt32(base.Reader.ReadElementString()); array[9] = true; } else if (!array[10] && base.Reader.LocalName == this.id13_TargetScanned && base.Reader.NamespaceURI == this.id2_Item) { status.TargetScanned = XmlConvert.ToInt32(base.Reader.ReadElementString()); array[10] = true; } else { base.UnknownNode(status, ":Result, :Type, :Name, :FailureDetails, :StartUTC, :EndUTC, :Added, :Deleted, :Updated, :Scanned, :TargetScanned"); } } else { base.UnknownNode(status, ":Result, :Type, :Name, :FailureDetails, :StartUTC, :EndUTC, :Added, :Deleted, :Updated, :Scanned, :TargetScanned"); } base.Reader.MoveToContent(); base.CheckReaderCount(ref num, ref readerCount); } base.ReadEndElement(); return(status); }
private PossibleRecipient Read4_PossibleRecipient(bool isNullable, bool checkType) { XmlQualifiedName xmlQualifiedName = checkType ? base.GetXsiType() : null; bool flag = false; if (isNullable) { flag = base.ReadNull(); } if (checkType && !(xmlQualifiedName == null) && (xmlQualifiedName.Name != this.id16_PossibleRecipient || xmlQualifiedName.Namespace != this.id2_Item)) { throw base.CreateUnknownTypeException(xmlQualifiedName); } if (flag) { return(null); } PossibleRecipient possibleRecipient = new PossibleRecipient(); if (possibleRecipient.PasscodeSentTimeHistory == null) { possibleRecipient.PasscodeSentTimeHistory = new List <DateTime>(); } List <DateTime> passcodeSentTimeHistory = possibleRecipient.PasscodeSentTimeHistory; if (possibleRecipient.PasscodeVerificationFailedTimeHistory == null) { possibleRecipient.PasscodeVerificationFailedTimeHistory = new List <DateTime>(); } List <DateTime> passcodeVerificationFailedTimeHistory = possibleRecipient.PasscodeVerificationFailedTimeHistory; bool[] array = new bool[10]; while (base.Reader.MoveToNextAttribute()) { if (!base.IsXmlnsAttribute(base.Reader.Name)) { base.UnknownNode(possibleRecipient); } } base.Reader.MoveToElement(); if (base.Reader.IsEmptyElement) { base.Reader.Skip(); return(possibleRecipient); } base.Reader.ReadStartElement(); base.Reader.MoveToContent(); int num = 0; int readerCount = base.ReaderCount; while (base.Reader.NodeType != XmlNodeType.EndElement && base.Reader.NodeType != XmlNodeType.None) { if (base.Reader.NodeType == XmlNodeType.Element) { if (!array[0] && base.Reader.LocalName == this.id17_Effective && base.Reader.NamespaceURI == this.id2_Item) { possibleRecipient.Effective = XmlConvert.ToBoolean(base.Reader.ReadElementString()); array[0] = true; } else if (!array[1] && base.Reader.LocalName == this.id18_EffectiveLastModificationTime && base.Reader.NamespaceURI == this.id2_Item) { possibleRecipient.EffectiveLastModificationTime = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[1] = true; } else if (!array[2] && base.Reader.LocalName == this.id19_Region && base.Reader.NamespaceURI == this.id2_Item) { possibleRecipient.Region = base.Reader.ReadElementString(); array[2] = true; } else if (!array[3] && base.Reader.LocalName == this.id20_Carrier && base.Reader.NamespaceURI == this.id2_Item) { possibleRecipient.Carrier = base.Reader.ReadElementString(); array[3] = true; } else if (!array[4] && base.Reader.LocalName == this.id9_PhoneNumber && base.Reader.NamespaceURI == this.id2_Item) { possibleRecipient.PhoneNumber = (E164Number)base.ReadSerializable(new E164Number()); array[4] = true; } else if (!array[5] && base.Reader.LocalName == this.id21_PhoneNumberSetTime && base.Reader.NamespaceURI == this.id2_Item) { possibleRecipient.PhoneNumberSetTime = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[5] = true; } else if (!array[6] && base.Reader.LocalName == this.id22_Acknowledged && base.Reader.NamespaceURI == this.id2_Item) { possibleRecipient.Acknowledged = XmlConvert.ToBoolean(base.Reader.ReadElementString()); array[6] = true; } else if (!array[7] && base.Reader.LocalName == this.id23_Passcode && base.Reader.NamespaceURI == this.id2_Item) { possibleRecipient.Passcode = base.Reader.ReadElementString(); array[7] = true; } else if (base.Reader.LocalName == this.id24_PasscodeSentTimeHistory && base.Reader.NamespaceURI == this.id2_Item) { if (!base.ReadNull()) { if (possibleRecipient.PasscodeSentTimeHistory == null) { possibleRecipient.PasscodeSentTimeHistory = new List <DateTime>(); } List <DateTime> passcodeSentTimeHistory2 = possibleRecipient.PasscodeSentTimeHistory; if (base.Reader.IsEmptyElement) { base.Reader.Skip(); } else { base.Reader.ReadStartElement(); base.Reader.MoveToContent(); int num2 = 0; int readerCount2 = base.ReaderCount; while (base.Reader.NodeType != XmlNodeType.EndElement && base.Reader.NodeType != XmlNodeType.None) { if (base.Reader.NodeType == XmlNodeType.Element) { if (base.Reader.LocalName == this.id25_SentTime && base.Reader.NamespaceURI == this.id2_Item) { passcodeSentTimeHistory2.Add(XmlSerializationReader.ToDateTime(base.Reader.ReadElementString())); } else { base.UnknownNode(null, ":SentTime"); } } else { base.UnknownNode(null, ":SentTime"); } base.Reader.MoveToContent(); base.CheckReaderCount(ref num2, ref readerCount2); } base.ReadEndElement(); } } } else if (base.Reader.LocalName == this.id26_Item && base.Reader.NamespaceURI == this.id2_Item) { if (!base.ReadNull()) { if (possibleRecipient.PasscodeVerificationFailedTimeHistory == null) { possibleRecipient.PasscodeVerificationFailedTimeHistory = new List <DateTime>(); } List <DateTime> passcodeVerificationFailedTimeHistory2 = possibleRecipient.PasscodeVerificationFailedTimeHistory; if (base.Reader.IsEmptyElement) { base.Reader.Skip(); } else { base.Reader.ReadStartElement(); base.Reader.MoveToContent(); int num3 = 0; int readerCount3 = base.ReaderCount; while (base.Reader.NodeType != XmlNodeType.EndElement && base.Reader.NodeType != XmlNodeType.None) { if (base.Reader.NodeType == XmlNodeType.Element) { if (base.Reader.LocalName == this.id27_FailedTime && base.Reader.NamespaceURI == this.id2_Item) { passcodeVerificationFailedTimeHistory2.Add(XmlSerializationReader.ToDateTime(base.Reader.ReadElementString())); } else { base.UnknownNode(null, ":FailedTime"); } } else { base.UnknownNode(null, ":FailedTime"); } base.Reader.MoveToContent(); base.CheckReaderCount(ref num3, ref readerCount3); } base.ReadEndElement(); } } } else { base.UnknownNode(possibleRecipient, ":Effective, :EffectiveLastModificationTime, :Region, :Carrier, :PhoneNumber, :PhoneNumberSetTime, :Acknowledged, :Passcode, :PasscodeSentTimeHistory, :PasscodeVerificationFailedTimeHistory"); } } else { base.UnknownNode(possibleRecipient, ":Effective, :EffectiveLastModificationTime, :Region, :Carrier, :PhoneNumber, :PhoneNumberSetTime, :Acknowledged, :Passcode, :PasscodeSentTimeHistory, :PasscodeVerificationFailedTimeHistory"); } base.Reader.MoveToContent(); base.CheckReaderCount(ref num, ref readerCount); } base.ReadEndElement(); return(possibleRecipient); }
private Duration Read2_Duration(bool isNullable, bool checkType) { XmlQualifiedName xmlQualifiedName = checkType ? base.GetXsiType() : null; bool flag = false; if (isNullable) { flag = base.ReadNull(); } if (checkType && !(xmlQualifiedName == null) && (xmlQualifiedName.Name != this.id4_Duration || xmlQualifiedName.Namespace != this.id14_Item)) { throw base.CreateUnknownTypeException(xmlQualifiedName); } if (flag) { return(null); } Duration duration = new Duration(); bool[] array = new bool[2]; while (base.Reader.MoveToNextAttribute()) { if (!base.IsXmlnsAttribute(base.Reader.Name)) { base.UnknownNode(duration); } } base.Reader.MoveToElement(); if (base.Reader.IsEmptyElement) { base.Reader.Skip(); return(duration); } base.Reader.ReadStartElement(); base.Reader.MoveToContent(); int num = 0; int readerCount = base.ReaderCount; while (base.Reader.NodeType != XmlNodeType.EndElement && base.Reader.NodeType != XmlNodeType.None) { if (base.Reader.NodeType == XmlNodeType.Element) { if (!array[0] && base.Reader.LocalName == this.id15_StartTime && base.Reader.NamespaceURI == this.id14_Item) { duration.StartTime = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[0] = true; } else if (!array[1] && base.Reader.LocalName == this.id16_EndTime && base.Reader.NamespaceURI == this.id14_Item) { duration.EndTime = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[1] = true; } else { base.UnknownNode(duration, "http://schemas.microsoft.com/exchange/services/2006/types:StartTime, http://schemas.microsoft.com/exchange/services/2006/types:EndTime"); } } else { base.UnknownNode(duration, "http://schemas.microsoft.com/exchange/services/2006/types:StartTime, http://schemas.microsoft.com/exchange/services/2006/types:EndTime"); } base.Reader.MoveToContent(); base.CheckReaderCount(ref num, ref readerCount); } base.ReadEndElement(); return(duration); }
private TimeSlotMonitoringSettings Read7_TimeSlotMonitoringSettings(bool isNullable, bool checkType) { XmlQualifiedName xmlQualifiedName = checkType ? base.GetXsiType() : null; bool flag = false; if (isNullable) { flag = base.ReadNull(); } if (checkType && !(xmlQualifiedName == null) && (xmlQualifiedName.Name != this.id27_TimeSlotMonitoringSettings || xmlQualifiedName.Namespace != this.id2_Item)) { throw base.CreateUnknownTypeException(xmlQualifiedName); } if (flag) { return(null); } TimeSlotMonitoringSettings timeSlotMonitoringSettings = new TimeSlotMonitoringSettings(); bool[] array = new bool[5]; while (base.Reader.MoveToNextAttribute()) { if (!base.IsXmlnsAttribute(base.Reader.Name)) { base.UnknownNode(timeSlotMonitoringSettings); } } base.Reader.MoveToElement(); if (base.Reader.IsEmptyElement) { base.Reader.Skip(); return(timeSlotMonitoringSettings); } base.Reader.ReadStartElement(); base.Reader.MoveToContent(); int num = 0; int readerCount = base.ReaderCount; while (base.Reader.NodeType != XmlNodeType.EndElement && base.Reader.NodeType != XmlNodeType.None) { if (base.Reader.NodeType == XmlNodeType.Element) { if (!array[0] && base.Reader.LocalName == this.id14_Enabled && base.Reader.NamespaceURI == this.id2_Item) { timeSlotMonitoringSettings.Enabled = XmlConvert.ToBoolean(base.Reader.ReadElementString()); array[0] = true; } else if (!array[1] && base.Reader.LocalName == this.id28_NotifyInWorkHoursTimeSlot && base.Reader.NamespaceURI == this.id2_Item) { timeSlotMonitoringSettings.NotifyInWorkHoursTimeSlot = XmlConvert.ToBoolean(base.Reader.ReadElementString()); array[1] = true; } else if (!array[2] && base.Reader.LocalName == this.id29_NotifyingStartTimeInDay && base.Reader.NamespaceURI == this.id2_Item) { timeSlotMonitoringSettings.NotifyingStartTimeInDay = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[2] = true; } else if (!array[3] && base.Reader.LocalName == this.id30_NotifyingEndTimeInDay && base.Reader.NamespaceURI == this.id2_Item) { timeSlotMonitoringSettings.NotifyingEndTimeInDay = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[3] = true; } else if (!array[4] && base.Reader.LocalName == this.id16_Duration && base.Reader.NamespaceURI == this.id2_Item) { timeSlotMonitoringSettings.Duration = this.Read6_Duration(false, true); array[4] = true; } else { base.UnknownNode(timeSlotMonitoringSettings, ":Enabled, :NotifyInWorkHoursTimeSlot, :NotifyingStartTimeInDay, :NotifyingEndTimeInDay, :Duration"); } } else { base.UnknownNode(timeSlotMonitoringSettings, ":Enabled, :NotifyInWorkHoursTimeSlot, :NotifyingStartTimeInDay, :NotifyingEndTimeInDay, :Duration"); } base.Reader.MoveToContent(); base.CheckReaderCount(ref num, ref readerCount); } base.ReadEndElement(); return(timeSlotMonitoringSettings); }
private Duration Read6_Duration(bool isNullable, bool checkType) { XmlQualifiedName xmlQualifiedName = checkType ? base.GetXsiType() : null; bool flag = false; if (isNullable) { flag = base.ReadNull(); } if (checkType && !(xmlQualifiedName == null) && (xmlQualifiedName.Name != this.id16_Duration || xmlQualifiedName.Namespace != this.id2_Item)) { throw base.CreateUnknownTypeException(xmlQualifiedName); } if (flag) { return(null); } Duration duration = new Duration(); bool[] array = new bool[6]; while (base.Reader.MoveToNextAttribute()) { if (!base.IsXmlnsAttribute(base.Reader.Name)) { base.UnknownNode(duration); } } base.Reader.MoveToElement(); if (base.Reader.IsEmptyElement) { base.Reader.Skip(); return(duration); } base.Reader.ReadStartElement(); base.Reader.MoveToContent(); int num = 0; int readerCount = base.ReaderCount; while (base.Reader.NodeType != XmlNodeType.EndElement && base.Reader.NodeType != XmlNodeType.None) { if (base.Reader.NodeType == XmlNodeType.Element) { if (!array[0] && base.Reader.LocalName == this.id9_Type && base.Reader.NamespaceURI == this.id2_Item) { duration.Type = this.Read5_DurationType(base.Reader.ReadElementString()); array[0] = true; } else if (!array[1] && base.Reader.LocalName == this.id18_Interval && base.Reader.NamespaceURI == this.id2_Item) { duration.Interval = XmlConvert.ToUInt32(base.Reader.ReadElementString()); array[1] = true; } else if (!array[2] && base.Reader.LocalName == this.id23_UseWorkHoursTimeSlot && base.Reader.NamespaceURI == this.id2_Item) { duration.UseWorkHoursTimeSlot = XmlConvert.ToBoolean(base.Reader.ReadElementString()); array[2] = true; } else if (!array[3] && base.Reader.LocalName == this.id24_StartTimeInDay && base.Reader.NamespaceURI == this.id2_Item) { duration.StartTimeInDay = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[3] = true; } else if (!array[4] && base.Reader.LocalName == this.id25_EndTimeInDay && base.Reader.NamespaceURI == this.id2_Item) { duration.EndTimeInDay = XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()); array[4] = true; } else if (!array[5] && base.Reader.LocalName == this.id26_NonWorkHoursExcluded && base.Reader.NamespaceURI == this.id2_Item) { duration.NonWorkHoursExcluded = XmlConvert.ToBoolean(base.Reader.ReadElementString()); array[5] = true; } else { base.UnknownNode(duration, ":Type, :Interval, :UseWorkHoursTimeSlot, :StartTimeInDay, :EndTimeInDay, :NonWorkHoursExcluded"); } } else { base.UnknownNode(duration, ":Type, :Interval, :UseWorkHoursTimeSlot, :StartTimeInDay, :EndTimeInDay, :NonWorkHoursExcluded"); } base.Reader.MoveToContent(); base.CheckReaderCount(ref num, ref readerCount); } base.ReadEndElement(); return(duration); }