public ModifyCategoriesObjectTask(JToken node) : base(node)
 {
     if (node["addRemoveType"] != null)
     {
         this._AddRemoveType = (ScheduledTaskAddOrRemoveType)ParseEnum(typeof(ScheduledTaskAddOrRemoveType), node["addRemoveType"].Value <string>());
     }
     if (node["categoryIds"] != null)
     {
         this._CategoryIds = new List <IntegerValue>();
         foreach (var arrayNode in node["categoryIds"].Children())
         {
             this._CategoryIds.Add(ObjectFactory.Create <IntegerValue>(arrayNode));
         }
     }
 }
        public ModifyCategoriesObjectTask(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "addRemoveType":
                    this._AddRemoveType = (ScheduledTaskAddOrRemoveType)ParseEnum(typeof(ScheduledTaskAddOrRemoveType), propertyNode.InnerText);
                    continue;

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