public ScheduledTaskJobData(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "maxResults":
                    this._MaxResults = ParseInt(propertyNode.InnerText);
                    continue;

                case "totalCount":
                    this._TotalCount = ParseInt(propertyNode.InnerText);
                    continue;

                case "fileFormat":
                    this._FileFormat = (DryRunFileType)ParseEnum(typeof(DryRunFileType), propertyNode.InnerText);
                    continue;

                case "resultsFilePath":
                    this._ResultsFilePath = propertyNode.InnerText;
                    continue;

                case "referenceTime":
                    this._ReferenceTime = ParseInt(propertyNode.InnerText);
                    continue;
                }
            }
        }
Exemplo n.º 2
0
 public ScheduledTaskJobData(JToken node) : base(node)
 {
     if (node["maxResults"] != null)
     {
         this._MaxResults = ParseInt(node["maxResults"].Value <string>());
     }
     if (node["totalCount"] != null)
     {
         this._TotalCount = ParseInt(node["totalCount"].Value <string>());
     }
     if (node["fileFormat"] != null)
     {
         this._FileFormat = (DryRunFileType)ParseEnum(typeof(DryRunFileType), node["fileFormat"].Value <string>());
     }
     if (node["resultsFilePath"] != null)
     {
         this._ResultsFilePath = node["resultsFilePath"].Value <string>();
     }
     if (node["referenceTime"] != null)
     {
         this._ReferenceTime = ParseInt(node["referenceTime"].Value <string>());
     }
 }