public MetadataProfile(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["metadataObjectType"] != null)
     {
         this._MetadataObjectType = (MetadataObjectType)StringEnum.Parse(typeof(MetadataObjectType), node["metadataObjectType"].Value <string>());
     }
     if (node["version"] != null)
     {
         this._Version = ParseInt(node["version"].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["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (MetadataProfileStatus)ParseEnum(typeof(MetadataProfileStatus), node["status"].Value <string>());
     }
     if (node["xsd"] != null)
     {
         this._Xsd = node["xsd"].Value <string>();
     }
     if (node["views"] != null)
     {
         this._Views = node["views"].Value <string>();
     }
     if (node["xslt"] != null)
     {
         this._Xslt = node["xslt"].Value <string>();
     }
     if (node["createMode"] != null)
     {
         this._CreateMode = (MetadataProfileCreateMode)ParseEnum(typeof(MetadataProfileCreateMode), node["createMode"].Value <string>());
     }
     if (node["disableReIndexing"] != null)
     {
         this._DisableReIndexing = ParseBool(node["disableReIndexing"].Value <string>());
     }
 }
        public MetadataProfile(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 "metadataObjectType":
                    this._MetadataObjectType = (MetadataObjectType)StringEnum.Parse(typeof(MetadataObjectType), propertyNode.InnerText);
                    continue;

                case "version":
                    this._Version = 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 "createdAt":
                    this._CreatedAt = ParseInt(propertyNode.InnerText);
                    continue;

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

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

                case "xsd":
                    this._Xsd = propertyNode.InnerText;
                    continue;

                case "views":
                    this._Views = propertyNode.InnerText;
                    continue;

                case "xslt":
                    this._Xslt = propertyNode.InnerText;
                    continue;

                case "createMode":
                    this._CreateMode = (MetadataProfileCreateMode)ParseEnum(typeof(MetadataProfileCreateMode), propertyNode.InnerText);
                    continue;

                case "disableReIndexing":
                    this._DisableReIndexing = ParseBool(propertyNode.InnerText);
                    continue;
                }
            }
        }
 public MetadataProfileBaseFilter(JToken node) : base(node)
 {
     if (node["idEqual"] != null)
     {
         this._IdEqual = ParseInt(node["idEqual"].Value <string>());
     }
     if (node["partnerIdEqual"] != null)
     {
         this._PartnerIdEqual = ParseInt(node["partnerIdEqual"].Value <string>());
     }
     if (node["metadataObjectTypeEqual"] != null)
     {
         this._MetadataObjectTypeEqual = (MetadataObjectType)StringEnum.Parse(typeof(MetadataObjectType), node["metadataObjectTypeEqual"].Value <string>());
     }
     if (node["metadataObjectTypeIn"] != null)
     {
         this._MetadataObjectTypeIn = node["metadataObjectTypeIn"].Value <string>();
     }
     if (node["versionEqual"] != null)
     {
         this._VersionEqual = ParseInt(node["versionEqual"].Value <string>());
     }
     if (node["nameEqual"] != null)
     {
         this._NameEqual = node["nameEqual"].Value <string>();
     }
     if (node["systemNameEqual"] != null)
     {
         this._SystemNameEqual = node["systemNameEqual"].Value <string>();
     }
     if (node["systemNameIn"] != null)
     {
         this._SystemNameIn = node["systemNameIn"].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["statusEqual"] != null)
     {
         this._StatusEqual = (MetadataProfileStatus)ParseEnum(typeof(MetadataProfileStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["createModeEqual"] != null)
     {
         this._CreateModeEqual = (MetadataProfileCreateMode)ParseEnum(typeof(MetadataProfileCreateMode), node["createModeEqual"].Value <string>());
     }
     if (node["createModeNotEqual"] != null)
     {
         this._CreateModeNotEqual = (MetadataProfileCreateMode)ParseEnum(typeof(MetadataProfileCreateMode), node["createModeNotEqual"].Value <string>());
     }
     if (node["createModeIn"] != null)
     {
         this._CreateModeIn = node["createModeIn"].Value <string>();
     }
     if (node["createModeNotIn"] != null)
     {
         this._CreateModeNotIn = node["createModeNotIn"].Value <string>();
     }
 }
Ejemplo n.º 4
0
        public MetadataProfileBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "idEqual":
                    this._IdEqual = ParseInt(propertyNode.InnerText);
                    continue;

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

                case "metadataObjectTypeEqual":
                    this._MetadataObjectTypeEqual = (MetadataObjectType)StringEnum.Parse(typeof(MetadataObjectType), propertyNode.InnerText);
                    continue;

                case "metadataObjectTypeIn":
                    this._MetadataObjectTypeIn = propertyNode.InnerText;
                    continue;

                case "versionEqual":
                    this._VersionEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "nameEqual":
                    this._NameEqual = propertyNode.InnerText;
                    continue;

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

                case "systemNameIn":
                    this._SystemNameIn = 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 "statusEqual":
                    this._StatusEqual = (MetadataProfileStatus)ParseEnum(typeof(MetadataProfileStatus), propertyNode.InnerText);
                    continue;

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

                case "createModeEqual":
                    this._CreateModeEqual = (MetadataProfileCreateMode)ParseEnum(typeof(MetadataProfileCreateMode), propertyNode.InnerText);
                    continue;

                case "createModeNotEqual":
                    this._CreateModeNotEqual = (MetadataProfileCreateMode)ParseEnum(typeof(MetadataProfileCreateMode), propertyNode.InnerText);
                    continue;

                case "createModeIn":
                    this._CreateModeIn = propertyNode.InnerText;
                    continue;

                case "createModeNotIn":
                    this._CreateModeNotIn = propertyNode.InnerText;
                    continue;
                }
            }
        }