public ScheduledTaskProfile(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["name"] != null)
     {
         this._Name = node["name"].Value <string>();
     }
     if (node["systemName"] != null)
     {
         this._SystemName = node["systemName"].Value <string>();
     }
     if (node["description"] != null)
     {
         this._Description = node["description"].Value <string>();
     }
     if (node["status"] != null)
     {
         this._Status = (ScheduledTaskProfileStatus)ParseEnum(typeof(ScheduledTaskProfileStatus), node["status"].Value <string>());
     }
     if (node["objectFilterEngineType"] != null)
     {
         this._ObjectFilterEngineType = (ObjectFilterEngineType)StringEnum.Parse(typeof(ObjectFilterEngineType), node["objectFilterEngineType"].Value <string>());
     }
     if (node["objectFilter"] != null)
     {
         this._ObjectFilter = ObjectFactory.Create <Filter>(node["objectFilter"]);
     }
     if (node["objectTasks"] != null)
     {
         this._ObjectTasks = new List <ObjectTask>();
         foreach (var arrayNode in node["objectTasks"].Children())
         {
             this._ObjectTasks.Add(ObjectFactory.Create <ObjectTask>(arrayNode));
         }
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["lastExecutionStartedAt"] != null)
     {
         this._LastExecutionStartedAt = ParseInt(node["lastExecutionStartedAt"].Value <string>());
     }
     if (node["maxTotalCountAllowed"] != null)
     {
         this._MaxTotalCountAllowed = ParseInt(node["maxTotalCountAllowed"].Value <string>());
     }
 }
Пример #2
0
        public ScheduledTaskProfile(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = ParseInt(propertyNode.InnerText);
                    continue;

                case "partnerId":
                    this._PartnerId = ParseInt(propertyNode.InnerText);
                    continue;

                case "name":
                    this._Name = propertyNode.InnerText;
                    continue;

                case "systemName":
                    this._SystemName = propertyNode.InnerText;
                    continue;

                case "description":
                    this._Description = propertyNode.InnerText;
                    continue;

                case "status":
                    this._Status = (ScheduledTaskProfileStatus)ParseEnum(typeof(ScheduledTaskProfileStatus), propertyNode.InnerText);
                    continue;

                case "objectFilterEngineType":
                    this._ObjectFilterEngineType = (ObjectFilterEngineType)StringEnum.Parse(typeof(ObjectFilterEngineType), propertyNode.InnerText);
                    continue;

                case "objectFilter":
                    this._ObjectFilter = ObjectFactory.Create <Filter>(propertyNode);
                    continue;

                case "objectTasks":
                    this._ObjectTasks = new List <ObjectTask>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this._ObjectTasks.Add(ObjectFactory.Create <ObjectTask>(arrayNode));
                    }
                    continue;

                case "createdAt":
                    this._CreatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAt":
                    this._UpdatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "lastExecutionStartedAt":
                    this._LastExecutionStartedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "maxTotalCountAllowed":
                    this._MaxTotalCountAllowed = ParseInt(propertyNode.InnerText);
                    continue;
                }
            }
        }
 public ScheduledTaskProfileBaseFilter(JToken node) : base(node)
 {
     if (node["idEqual"] != null)
     {
         this._IdEqual = ParseInt(node["idEqual"].Value <string>());
     }
     if (node["idIn"] != null)
     {
         this._IdIn = node["idIn"].Value <string>();
     }
     if (node["partnerIdEqual"] != null)
     {
         this._PartnerIdEqual = ParseInt(node["partnerIdEqual"].Value <string>());
     }
     if (node["partnerIdIn"] != null)
     {
         this._PartnerIdIn = node["partnerIdIn"].Value <string>();
     }
     if (node["systemNameEqual"] != null)
     {
         this._SystemNameEqual = node["systemNameEqual"].Value <string>();
     }
     if (node["systemNameIn"] != null)
     {
         this._SystemNameIn = node["systemNameIn"].Value <string>();
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (ScheduledTaskProfileStatus)ParseEnum(typeof(ScheduledTaskProfileStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["createdAtGreaterThanOrEqual"] != null)
     {
         this._CreatedAtGreaterThanOrEqual = ParseInt(node["createdAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["createdAtLessThanOrEqual"] != null)
     {
         this._CreatedAtLessThanOrEqual = ParseInt(node["createdAtLessThanOrEqual"].Value <string>());
     }
     if (node["updatedAtGreaterThanOrEqual"] != null)
     {
         this._UpdatedAtGreaterThanOrEqual = ParseInt(node["updatedAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["updatedAtLessThanOrEqual"] != null)
     {
         this._UpdatedAtLessThanOrEqual = ParseInt(node["updatedAtLessThanOrEqual"].Value <string>());
     }
     if (node["lastExecutionStartedAtGreaterThanOrEqual"] != null)
     {
         this._LastExecutionStartedAtGreaterThanOrEqual = ParseInt(node["lastExecutionStartedAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["lastExecutionStartedAtLessThanOrEqual"] != null)
     {
         this._LastExecutionStartedAtLessThanOrEqual = ParseInt(node["lastExecutionStartedAtLessThanOrEqual"].Value <string>());
     }
     if (node["lastExecutionStartedAtLessThanOrEqualOrNull"] != null)
     {
         this._LastExecutionStartedAtLessThanOrEqualOrNull = ParseInt(node["lastExecutionStartedAtLessThanOrEqualOrNull"].Value <string>());
     }
 }
Пример #4
0
        public ScheduledTaskProfileBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "idEqual":
                    this._IdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "idIn":
                    this._IdIn = propertyNode.InnerText;
                    continue;

                case "partnerIdEqual":
                    this._PartnerIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "partnerIdIn":
                    this._PartnerIdIn = propertyNode.InnerText;
                    continue;

                case "systemNameEqual":
                    this._SystemNameEqual = propertyNode.InnerText;
                    continue;

                case "systemNameIn":
                    this._SystemNameIn = propertyNode.InnerText;
                    continue;

                case "statusEqual":
                    this._StatusEqual = (ScheduledTaskProfileStatus)ParseEnum(typeof(ScheduledTaskProfileStatus), propertyNode.InnerText);
                    continue;

                case "statusIn":
                    this._StatusIn = propertyNode.InnerText;
                    continue;

                case "createdAtGreaterThanOrEqual":
                    this._CreatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "createdAtLessThanOrEqual":
                    this._CreatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAtGreaterThanOrEqual":
                    this._UpdatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAtLessThanOrEqual":
                    this._UpdatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "lastExecutionStartedAtGreaterThanOrEqual":
                    this._LastExecutionStartedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "lastExecutionStartedAtLessThanOrEqual":
                    this._LastExecutionStartedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;
                }
            }
        }