using System.Xml; using System.Xml.Serialization; namespace EventSchedulerUnitTests { #region XmlNotices class //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.3053 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This source code was auto-generated by xsd, Version=2.0.50727.3038. // /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "NoticeInfo__1.0")] [System.Xml.Serialization.XmlRootAttribute(ElementName = "XML", Namespace = "NoticeInfo__1.0", IsNullable = false)] public partial class XmlNotices { private object[] itemsField; public XmlNotices() { itemsField = new NoticeType[1]; itemsField[0] = new NoticeType(); } public XmlNotices(string xml) { if (!string.IsNullOrEmpty(xml)) { XmlDocument doc = new XmlDocument(); doc.LoadXml(xml); //Assuming doc is an XML document containing a serialized object and objType is a System.Type set to the type of the object. if (doc.DocumentElement != null) { XmlNodeReader reader = new XmlNodeReader(doc.DocumentElement); XmlSerializer ser = new XmlSerializer(typeof(XmlNotices)); XmlNotices obj = (XmlNotices)ser.Deserialize(reader); itemsField = obj.Items; } } } /// [System.Xml.Serialization.XmlElementAttribute("ErrorType", typeof(ErrorType))] [System.Xml.Serialization.XmlElementAttribute("NoticeType", typeof(NoticeType))] [System.Xml.Serialization.XmlElementAttribute("ScheduleChangeType", typeof(ScheduleChangeType))] public object[] Items { get { return this.itemsField; } set { this.itemsField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(TypeName = "XMLErrorType", AnonymousType = true, Namespace = "NoticeInfo__1.0")] public partial class ErrorType { private string _errorField; private string _eventidField; private string _errorInfoField; private string _eventid2Field; private string _errorInfo2Field; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string Error { get { return this._errorField; } set { this._errorField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string eventid { get { return this._eventidField; } set { this._eventidField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string ErrorInfo { get { return this._errorInfoField; } set { this._errorInfoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string eventid2 { get { return this._eventid2Field; } set { this._eventid2Field = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string ErrorInfo2 { get { return this._errorInfo2Field; } set { this._errorInfo2Field = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(TypeName = "XMLNoticeType", AnonymousType = true, Namespace = "NoticeInfo__1.0")] public partial class NoticeType { private string _eventTypeField; private string _eventidField; private string _errorInfoField; private string _parentEventIDField; private string _newParentEventIdField; private string _previousEventIdField; private string _newStartDateField; public NoticeType() { } public NoticeType(string xml) { XmlDocument doc = new XmlDocument(); doc.LoadXml(xml); //Assuming doc is an XML document containing a serialized object and objType is a System.Type set to the type of the object. if (doc.DocumentElement != null) { XmlNodeReader reader = new XmlNodeReader(doc.DocumentElement); XmlSerializer ser = new XmlSerializer(typeof(NoticeType)); NoticeType obj = (NoticeType)ser.Deserialize(reader); _eventTypeField = obj.EventType; _eventidField = obj.eventid; _errorInfoField = obj.ErrorInfo; _parentEventIDField = obj.parentEventID; _newParentEventIdField = obj.NewParentEventId; _previousEventIdField = obj.PreviousEventId; _newStartDateField = obj.NewStartDate; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string EventType { get { return this._eventTypeField; } set { this._eventTypeField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string eventid { get { return this._eventidField; } set { this._eventidField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string ErrorInfo { get { return this._errorInfoField; } set { this._errorInfoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string parentEventID { get { return this._parentEventIDField; } set { this._parentEventIDField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string NewParentEventId { get { return this._newParentEventIdField; } set { this._newParentEventIdField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string PreviousEventId { get { return this._previousEventIdField; } set { this._previousEventIdField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string NewStartDate { get { return this._newStartDateField; } set { this._newStartDateField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(TypeName = "XMLScheduleChangeType", AnonymousType = true, Namespace = "NoticeInfo__1.0")] public partial class ScheduleChangeType { private string _eventTypeField; private string _eventidField; private string _errorInfoField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string EventType { get { return this._eventTypeField; } set { this._eventTypeField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string eventid { get { return this._eventidField; } set { this._eventidField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string ErrorInfo { get { return this._errorInfoField; } set { this._errorInfoField = value; } } } #endregion }