Beispiel #1
0
 public UiConf(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["name"] != null)
     {
         this._Name = node["name"].Value <string>();
     }
     if (node["description"] != null)
     {
         this._Description = node["description"].Value <string>();
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["objType"] != null)
     {
         this._ObjType = (UiConfObjType)ParseEnum(typeof(UiConfObjType), node["objType"].Value <string>());
     }
     if (node["objTypeAsString"] != null)
     {
         this._ObjTypeAsString = node["objTypeAsString"].Value <string>();
     }
     if (node["width"] != null)
     {
         this._Width = ParseInt(node["width"].Value <string>());
     }
     if (node["height"] != null)
     {
         this._Height = ParseInt(node["height"].Value <string>());
     }
     if (node["htmlParams"] != null)
     {
         this._HtmlParams = node["htmlParams"].Value <string>();
     }
     if (node["swfUrl"] != null)
     {
         this._SwfUrl = node["swfUrl"].Value <string>();
     }
     if (node["confFilePath"] != null)
     {
         this._ConfFilePath = node["confFilePath"].Value <string>();
     }
     if (node["confFile"] != null)
     {
         this._ConfFile = node["confFile"].Value <string>();
     }
     if (node["confFileFeatures"] != null)
     {
         this._ConfFileFeatures = node["confFileFeatures"].Value <string>();
     }
     if (node["config"] != null)
     {
         this._Config = node["config"].Value <string>();
     }
     if (node["confVars"] != null)
     {
         this._ConfVars = node["confVars"].Value <string>();
     }
     if (node["useCdn"] != null)
     {
         this._UseCdn = ParseBool(node["useCdn"].Value <string>());
     }
     if (node["tags"] != null)
     {
         this._Tags = node["tags"].Value <string>();
     }
     if (node["swfUrlVersion"] != null)
     {
         this._SwfUrlVersion = node["swfUrlVersion"].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["creationMode"] != null)
     {
         this._CreationMode = (UiConfCreationMode)ParseEnum(typeof(UiConfCreationMode), node["creationMode"].Value <string>());
     }
     if (node["html5Url"] != null)
     {
         this._Html5Url = node["html5Url"].Value <string>();
     }
     if (node["version"] != null)
     {
         this._Version = node["version"].Value <string>();
     }
     if (node["partnerTags"] != null)
     {
         this._PartnerTags = node["partnerTags"].Value <string>();
     }
 }
 public UiConfBaseFilter(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["nameLike"] != null)
     {
         this._NameLike = node["nameLike"].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["objTypeEqual"] != null)
     {
         this._ObjTypeEqual = (UiConfObjType)ParseEnum(typeof(UiConfObjType), node["objTypeEqual"].Value <string>());
     }
     if (node["objTypeIn"] != null)
     {
         this._ObjTypeIn = node["objTypeIn"].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>());
     }
     if (node["creationModeEqual"] != null)
     {
         this._CreationModeEqual = (UiConfCreationMode)ParseEnum(typeof(UiConfCreationMode), node["creationModeEqual"].Value <string>());
     }
     if (node["creationModeIn"] != null)
     {
         this._CreationModeIn = node["creationModeIn"].Value <string>();
     }
     if (node["versionEqual"] != null)
     {
         this._VersionEqual = node["versionEqual"].Value <string>();
     }
     if (node["versionMultiLikeOr"] != null)
     {
         this._VersionMultiLikeOr = node["versionMultiLikeOr"].Value <string>();
     }
     if (node["versionMultiLikeAnd"] != null)
     {
         this._VersionMultiLikeAnd = node["versionMultiLikeAnd"].Value <string>();
     }
     if (node["partnerTagsMultiLikeOr"] != null)
     {
         this._PartnerTagsMultiLikeOr = node["partnerTagsMultiLikeOr"].Value <string>();
     }
     if (node["partnerTagsMultiLikeAnd"] != null)
     {
         this._PartnerTagsMultiLikeAnd = node["partnerTagsMultiLikeAnd"].Value <string>();
     }
 }
        public UiConfBaseFilter(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 "nameLike":
                    this._NameLike = propertyNode.InnerText;
                    continue;

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

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

                case "objTypeEqual":
                    this._ObjTypeEqual = (UiConfObjType)ParseEnum(typeof(UiConfObjType), propertyNode.InnerText);
                    continue;

                case "objTypeIn":
                    this._ObjTypeIn = 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;

                case "creationModeEqual":
                    this._CreationModeEqual = (UiConfCreationMode)ParseEnum(typeof(UiConfCreationMode), propertyNode.InnerText);
                    continue;

                case "creationModeIn":
                    this._CreationModeIn = propertyNode.InnerText;
                    continue;

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

                case "versionMultiLikeOr":
                    this._VersionMultiLikeOr = propertyNode.InnerText;
                    continue;

                case "versionMultiLikeAnd":
                    this._VersionMultiLikeAnd = propertyNode.InnerText;
                    continue;

                case "partnerTagsMultiLikeOr":
                    this._PartnerTagsMultiLikeOr = propertyNode.InnerText;
                    continue;

                case "partnerTagsMultiLikeAnd":
                    this._PartnerTagsMultiLikeAnd = propertyNode.InnerText;
                    continue;
                }
            }
        }
        public UiConf(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = ParseInt(propertyNode.InnerText);
                    continue;

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

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

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

                case "objType":
                    this._ObjType = (UiConfObjType)ParseEnum(typeof(UiConfObjType), propertyNode.InnerText);
                    continue;

                case "objTypeAsString":
                    this._ObjTypeAsString = propertyNode.InnerText;
                    continue;

                case "width":
                    this._Width = ParseInt(propertyNode.InnerText);
                    continue;

                case "height":
                    this._Height = ParseInt(propertyNode.InnerText);
                    continue;

                case "htmlParams":
                    this._HtmlParams = propertyNode.InnerText;
                    continue;

                case "swfUrl":
                    this._SwfUrl = propertyNode.InnerText;
                    continue;

                case "confFilePath":
                    this._ConfFilePath = propertyNode.InnerText;
                    continue;

                case "confFile":
                    this._ConfFile = propertyNode.InnerText;
                    continue;

                case "confFileFeatures":
                    this._ConfFileFeatures = propertyNode.InnerText;
                    continue;

                case "config":
                    this._Config = propertyNode.InnerText;
                    continue;

                case "confVars":
                    this._ConfVars = propertyNode.InnerText;
                    continue;

                case "useCdn":
                    this._UseCdn = ParseBool(propertyNode.InnerText);
                    continue;

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

                case "swfUrlVersion":
                    this._SwfUrlVersion = propertyNode.InnerText;
                    continue;

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

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

                case "creationMode":
                    this._CreationMode = (UiConfCreationMode)ParseEnum(typeof(UiConfCreationMode), propertyNode.InnerText);
                    continue;

                case "html5Url":
                    this._Html5Url = propertyNode.InnerText;
                    continue;

                case "version":
                    this._Version = propertyNode.InnerText;
                    continue;

                case "partnerTags":
                    this._PartnerTags = propertyNode.InnerText;
                    continue;
                }
            }
        }