public ScheduleEventBaseFilter(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["idNotIn"] != null)
     {
         this._IdNotIn = node["idNotIn"].Value <string>();
     }
     if (node["parentIdEqual"] != null)
     {
         this._ParentIdEqual = ParseInt(node["parentIdEqual"].Value <string>());
     }
     if (node["parentIdIn"] != null)
     {
         this._ParentIdIn = node["parentIdIn"].Value <string>();
     }
     if (node["parentIdNotIn"] != null)
     {
         this._ParentIdNotIn = node["parentIdNotIn"].Value <string>();
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (ScheduleEventStatus)ParseEnum(typeof(ScheduleEventStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["startDateGreaterThanOrEqual"] != null)
     {
         this._StartDateGreaterThanOrEqual = ParseInt(node["startDateGreaterThanOrEqual"].Value <string>());
     }
     if (node["startDateLessThanOrEqual"] != null)
     {
         this._StartDateLessThanOrEqual = ParseInt(node["startDateLessThanOrEqual"].Value <string>());
     }
     if (node["endDateGreaterThanOrEqual"] != null)
     {
         this._EndDateGreaterThanOrEqual = ParseInt(node["endDateGreaterThanOrEqual"].Value <string>());
     }
     if (node["endDateLessThanOrEqual"] != null)
     {
         this._EndDateLessThanOrEqual = ParseInt(node["endDateLessThanOrEqual"].Value <string>());
     }
     if (node["referenceIdEqual"] != null)
     {
         this._ReferenceIdEqual = node["referenceIdEqual"].Value <string>();
     }
     if (node["referenceIdIn"] != null)
     {
         this._ReferenceIdIn = node["referenceIdIn"].Value <string>();
     }
     if (node["ownerIdEqual"] != null)
     {
         this._OwnerIdEqual = node["ownerIdEqual"].Value <string>();
     }
     if (node["ownerIdIn"] != null)
     {
         this._OwnerIdIn = node["ownerIdIn"].Value <string>();
     }
     if (node["priorityEqual"] != null)
     {
         this._PriorityEqual = ParseInt(node["priorityEqual"].Value <string>());
     }
     if (node["priorityIn"] != null)
     {
         this._PriorityIn = node["priorityIn"].Value <string>();
     }
     if (node["priorityGreaterThanOrEqual"] != null)
     {
         this._PriorityGreaterThanOrEqual = ParseInt(node["priorityGreaterThanOrEqual"].Value <string>());
     }
     if (node["priorityLessThanOrEqual"] != null)
     {
         this._PriorityLessThanOrEqual = ParseInt(node["priorityLessThanOrEqual"].Value <string>());
     }
     if (node["recurrenceTypeEqual"] != null)
     {
         this._RecurrenceTypeEqual = (ScheduleEventRecurrenceType)ParseEnum(typeof(ScheduleEventRecurrenceType), node["recurrenceTypeEqual"].Value <string>());
     }
     if (node["recurrenceTypeIn"] != null)
     {
         this._RecurrenceTypeIn = node["recurrenceTypeIn"].Value <string>();
     }
     if (node["tagsLike"] != null)
     {
         this._TagsLike = node["tagsLike"].Value <string>();
     }
     if (node["tagsMultiLikeOr"] != null)
     {
         this._TagsMultiLikeOr = node["tagsMultiLikeOr"].Value <string>();
     }
     if (node["tagsMultiLikeAnd"] != null)
     {
         this._TagsMultiLikeAnd = node["tagsMultiLikeAnd"].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>());
     }
 }
        public ScheduleEvent(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 "parentId":
                    this._ParentId = ParseInt(propertyNode.InnerText);
                    continue;

                case "summary":
                    this._Summary = propertyNode.InnerText;
                    continue;

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

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

                case "startDate":
                    this._StartDate = ParseInt(propertyNode.InnerText);
                    continue;

                case "endDate":
                    this._EndDate = ParseInt(propertyNode.InnerText);
                    continue;

                case "referenceId":
                    this._ReferenceId = propertyNode.InnerText;
                    continue;

                case "classificationType":
                    this._ClassificationType = (ScheduleEventClassificationType)ParseEnum(typeof(ScheduleEventClassificationType), propertyNode.InnerText);
                    continue;

                case "geoLatitude":
                    this._GeoLatitude = ParseFloat(propertyNode.InnerText);
                    continue;

                case "geoLongitude":
                    this._GeoLongitude = ParseFloat(propertyNode.InnerText);
                    continue;

                case "location":
                    this._Location = propertyNode.InnerText;
                    continue;

                case "organizer":
                    this._Organizer = propertyNode.InnerText;
                    continue;

                case "ownerId":
                    this._OwnerId = propertyNode.InnerText;
                    continue;

                case "priority":
                    this._Priority = ParseInt(propertyNode.InnerText);
                    continue;

                case "sequence":
                    this._Sequence = ParseInt(propertyNode.InnerText);
                    continue;

                case "recurrenceType":
                    this._RecurrenceType = (ScheduleEventRecurrenceType)ParseEnum(typeof(ScheduleEventRecurrenceType), propertyNode.InnerText);
                    continue;

                case "duration":
                    this._Duration = ParseInt(propertyNode.InnerText);
                    continue;

                case "contact":
                    this._Contact = propertyNode.InnerText;
                    continue;

                case "comment":
                    this._Comment = propertyNode.InnerText;
                    continue;

                case "tags":
                    this._Tags = propertyNode.InnerText;
                    continue;

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

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

                case "recurrence":
                    this._Recurrence = ObjectFactory.Create <ScheduleEventRecurrence>(propertyNode);
                    continue;
                }
            }
        }
 public ScheduleEvent(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["parentId"] != null)
     {
         this._ParentId = ParseInt(node["parentId"].Value <string>());
     }
     if (node["summary"] != null)
     {
         this._Summary = node["summary"].Value <string>();
     }
     if (node["description"] != null)
     {
         this._Description = node["description"].Value <string>();
     }
     if (node["status"] != null)
     {
         this._Status = (ScheduleEventStatus)ParseEnum(typeof(ScheduleEventStatus), node["status"].Value <string>());
     }
     if (node["startDate"] != null)
     {
         this._StartDate = ParseInt(node["startDate"].Value <string>());
     }
     if (node["endDate"] != null)
     {
         this._EndDate = ParseInt(node["endDate"].Value <string>());
     }
     if (node["referenceId"] != null)
     {
         this._ReferenceId = node["referenceId"].Value <string>();
     }
     if (node["classificationType"] != null)
     {
         this._ClassificationType = (ScheduleEventClassificationType)ParseEnum(typeof(ScheduleEventClassificationType), node["classificationType"].Value <string>());
     }
     if (node["geoLatitude"] != null)
     {
         this._GeoLatitude = ParseFloat(node["geoLatitude"].Value <string>());
     }
     if (node["geoLongitude"] != null)
     {
         this._GeoLongitude = ParseFloat(node["geoLongitude"].Value <string>());
     }
     if (node["location"] != null)
     {
         this._Location = node["location"].Value <string>();
     }
     if (node["organizer"] != null)
     {
         this._Organizer = node["organizer"].Value <string>();
     }
     if (node["ownerId"] != null)
     {
         this._OwnerId = node["ownerId"].Value <string>();
     }
     if (node["priority"] != null)
     {
         this._Priority = ParseInt(node["priority"].Value <string>());
     }
     if (node["sequence"] != null)
     {
         this._Sequence = ParseInt(node["sequence"].Value <string>());
     }
     if (node["recurrenceType"] != null)
     {
         this._RecurrenceType = (ScheduleEventRecurrenceType)ParseEnum(typeof(ScheduleEventRecurrenceType), node["recurrenceType"].Value <string>());
     }
     if (node["duration"] != null)
     {
         this._Duration = ParseInt(node["duration"].Value <string>());
     }
     if (node["contact"] != null)
     {
         this._Contact = node["contact"].Value <string>();
     }
     if (node["comment"] != null)
     {
         this._Comment = node["comment"].Value <string>();
     }
     if (node["tags"] != null)
     {
         this._Tags = node["tags"].Value <string>();
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["recurrence"] != null)
     {
         this._Recurrence = ObjectFactory.Create <ScheduleEventRecurrence>(node["recurrence"]);
     }
 }
Esempio n. 4
0
        public ScheduleEventBaseFilter(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 "idNotIn":
                    this._IdNotIn = propertyNode.InnerText;
                    continue;

                case "parentIdEqual":
                    this._ParentIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "parentIdIn":
                    this._ParentIdIn = propertyNode.InnerText;
                    continue;

                case "parentIdNotIn":
                    this._ParentIdNotIn = propertyNode.InnerText;
                    continue;

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

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

                case "startDateGreaterThanOrEqual":
                    this._StartDateGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "startDateLessThanOrEqual":
                    this._StartDateLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "endDateGreaterThanOrEqual":
                    this._EndDateGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "endDateLessThanOrEqual":
                    this._EndDateLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "referenceIdEqual":
                    this._ReferenceIdEqual = propertyNode.InnerText;
                    continue;

                case "referenceIdIn":
                    this._ReferenceIdIn = propertyNode.InnerText;
                    continue;

                case "ownerIdEqual":
                    this._OwnerIdEqual = propertyNode.InnerText;
                    continue;

                case "ownerIdIn":
                    this._OwnerIdIn = propertyNode.InnerText;
                    continue;

                case "priorityEqual":
                    this._PriorityEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "priorityIn":
                    this._PriorityIn = propertyNode.InnerText;
                    continue;

                case "priorityGreaterThanOrEqual":
                    this._PriorityGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "priorityLessThanOrEqual":
                    this._PriorityLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "recurrenceTypeEqual":
                    this._RecurrenceTypeEqual = (ScheduleEventRecurrenceType)ParseEnum(typeof(ScheduleEventRecurrenceType), propertyNode.InnerText);
                    continue;

                case "recurrenceTypeIn":
                    this._RecurrenceTypeIn = propertyNode.InnerText;
                    continue;

                case "tagsLike":
                    this._TagsLike = propertyNode.InnerText;
                    continue;

                case "tagsMultiLikeOr":
                    this._TagsMultiLikeOr = propertyNode.InnerText;
                    continue;

                case "tagsMultiLikeAnd":
                    this._TagsMultiLikeAnd = 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;
                }
            }
        }