public ViewHistoryUserEntryAdvancedFilter(JToken node) : base(node)
 {
     if (node["idEqual"] != null)
     {
         this._IdEqual = node["idEqual"].Value <string>();
     }
     if (node["idIn"] != null)
     {
         this._IdIn = node["idIn"].Value <string>();
     }
     if (node["userIdEqual"] != null)
     {
         this._UserIdEqual = node["userIdEqual"].Value <string>();
     }
     if (node["userIdIn"] != null)
     {
         this._UserIdIn = node["userIdIn"].Value <string>();
     }
     if (node["updatedAtGreaterThanOrEqual"] != null)
     {
         this._UpdatedAtGreaterThanOrEqual = node["updatedAtGreaterThanOrEqual"].Value <string>();
     }
     if (node["updatedAtLessThanOrEqual"] != null)
     {
         this._UpdatedAtLessThanOrEqual = node["updatedAtLessThanOrEqual"].Value <string>();
     }
     if (node["extendedStatusEqual"] != null)
     {
         this._ExtendedStatusEqual = (UserEntryExtendedStatus)StringEnum.Parse(typeof(UserEntryExtendedStatus), node["extendedStatusEqual"].Value <string>());
     }
     if (node["extendedStatusIn"] != null)
     {
         this._ExtendedStatusIn = node["extendedStatusIn"].Value <string>();
     }
 }
        public UserEntry(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = ParseInt(propertyNode.InnerText);
                    continue;

                case "entryId":
                    this._EntryId = propertyNode.InnerText;
                    continue;

                case "userId":
                    this._UserId = propertyNode.InnerText;
                    continue;

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

                case "status":
                    this._Status = (UserEntryStatus)StringEnum.Parse(typeof(UserEntryStatus), propertyNode.InnerText);
                    continue;

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

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

                case "type":
                    this._Type = (UserEntryType)StringEnum.Parse(typeof(UserEntryType), propertyNode.InnerText);
                    continue;

                case "extendedStatus":
                    this._ExtendedStatus = (UserEntryExtendedStatus)StringEnum.Parse(typeof(UserEntryExtendedStatus), propertyNode.InnerText);
                    continue;
                }
            }
        }
Exemplo n.º 3
0
        public ViewHistoryUserEntryAdvancedFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "idEqual":
                    this._IdEqual = propertyNode.InnerText;
                    continue;

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

                case "userIdEqual":
                    this._UserIdEqual = propertyNode.InnerText;
                    continue;

                case "userIdIn":
                    this._UserIdIn = propertyNode.InnerText;
                    continue;

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

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

                case "extendedStatusEqual":
                    this._ExtendedStatusEqual = (UserEntryExtendedStatus)StringEnum.Parse(typeof(UserEntryExtendedStatus), propertyNode.InnerText);
                    continue;

                case "extendedStatusIn":
                    this._ExtendedStatusIn = propertyNode.InnerText;
                    continue;
                }
            }
        }
 public UserEntry(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["entryId"] != null)
     {
         this._EntryId = node["entryId"].Value <string>();
     }
     if (node["userId"] != null)
     {
         this._UserId = node["userId"].Value <string>();
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (UserEntryStatus)StringEnum.Parse(typeof(UserEntryStatus), node["status"].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["type"] != null)
     {
         this._Type = (UserEntryType)StringEnum.Parse(typeof(UserEntryType), node["type"].Value <string>());
     }
     if (node["extendedStatus"] != null)
     {
         this._ExtendedStatus = (UserEntryExtendedStatus)StringEnum.Parse(typeof(UserEntryExtendedStatus), node["extendedStatus"].Value <string>());
     }
 }
Exemplo n.º 5
0
 public UserEntryBaseFilter(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["entryIdEqual"] != null)
     {
         this._EntryIdEqual = node["entryIdEqual"].Value <string>();
     }
     if (node["entryIdIn"] != null)
     {
         this._EntryIdIn = node["entryIdIn"].Value <string>();
     }
     if (node["entryIdNotIn"] != null)
     {
         this._EntryIdNotIn = node["entryIdNotIn"].Value <string>();
     }
     if (node["userIdEqual"] != null)
     {
         this._UserIdEqual = node["userIdEqual"].Value <string>();
     }
     if (node["userIdIn"] != null)
     {
         this._UserIdIn = node["userIdIn"].Value <string>();
     }
     if (node["userIdNotIn"] != null)
     {
         this._UserIdNotIn = node["userIdNotIn"].Value <string>();
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (UserEntryStatus)StringEnum.Parse(typeof(UserEntryStatus), node["statusEqual"].Value <string>());
     }
     if (node["createdAtLessThanOrEqual"] != null)
     {
         this._CreatedAtLessThanOrEqual = ParseInt(node["createdAtLessThanOrEqual"].Value <string>());
     }
     if (node["createdAtGreaterThanOrEqual"] != null)
     {
         this._CreatedAtGreaterThanOrEqual = ParseInt(node["createdAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["updatedAtLessThanOrEqual"] != null)
     {
         this._UpdatedAtLessThanOrEqual = ParseInt(node["updatedAtLessThanOrEqual"].Value <string>());
     }
     if (node["updatedAtGreaterThanOrEqual"] != null)
     {
         this._UpdatedAtGreaterThanOrEqual = ParseInt(node["updatedAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["typeEqual"] != null)
     {
         this._TypeEqual = (UserEntryType)StringEnum.Parse(typeof(UserEntryType), node["typeEqual"].Value <string>());
     }
     if (node["extendedStatusEqual"] != null)
     {
         this._ExtendedStatusEqual = (UserEntryExtendedStatus)StringEnum.Parse(typeof(UserEntryExtendedStatus), node["extendedStatusEqual"].Value <string>());
     }
     if (node["extendedStatusIn"] != null)
     {
         this._ExtendedStatusIn = node["extendedStatusIn"].Value <string>();
     }
     if (node["extendedStatusNotIn"] != null)
     {
         this._ExtendedStatusNotIn = node["extendedStatusNotIn"].Value <string>();
     }
 }
        public UserEntryBaseFilter(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 "entryIdEqual":
                    this._EntryIdEqual = propertyNode.InnerText;
                    continue;

                case "entryIdIn":
                    this._EntryIdIn = propertyNode.InnerText;
                    continue;

                case "entryIdNotIn":
                    this._EntryIdNotIn = propertyNode.InnerText;
                    continue;

                case "userIdEqual":
                    this._UserIdEqual = propertyNode.InnerText;
                    continue;

                case "userIdIn":
                    this._UserIdIn = propertyNode.InnerText;
                    continue;

                case "userIdNotIn":
                    this._UserIdNotIn = propertyNode.InnerText;
                    continue;

                case "statusEqual":
                    this._StatusEqual = (UserEntryStatus)StringEnum.Parse(typeof(UserEntryStatus), propertyNode.InnerText);
                    continue;

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

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

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

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

                case "typeEqual":
                    this._TypeEqual = (UserEntryType)StringEnum.Parse(typeof(UserEntryType), propertyNode.InnerText);
                    continue;

                case "extendedStatusEqual":
                    this._ExtendedStatusEqual = (UserEntryExtendedStatus)StringEnum.Parse(typeof(UserEntryExtendedStatus), propertyNode.InnerText);
                    continue;

                case "extendedStatusIn":
                    this._ExtendedStatusIn = propertyNode.InnerText;
                    continue;

                case "extendedStatusNotIn":
                    this._ExtendedStatusNotIn = propertyNode.InnerText;
                    continue;
                }
            }
        }