public AssetParamsResourceContainer(JToken node) : base(node)
 {
     if (node["resource"] != null)
     {
         this._Resource = ObjectFactory.Create <ContentResource>(node["resource"]);
     }
     if (node["assetParamsId"] != null)
     {
         this._AssetParamsId = ParseInt(node["assetParamsId"].Value <string>());
     }
 }
        public AssetParamsResourceContainer(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "resource":
                    this._Resource = ObjectFactory.Create <ContentResource>(propertyNode);
                    continue;

                case "assetParamsId":
                    this._AssetParamsId = ParseInt(propertyNode.InnerText);
                    continue;
                }
            }
        }
 public OperationResource(JToken node) : base(node)
 {
     if (node["resource"] != null)
     {
         this._Resource = ObjectFactory.Create <ContentResource>(node["resource"]);
     }
     if (node["operationAttributes"] != null)
     {
         this._OperationAttributes = new List <OperationAttributes>();
         foreach (var arrayNode in node["operationAttributes"].Children())
         {
             this._OperationAttributes.Add(ObjectFactory.Create <OperationAttributes>(arrayNode));
         }
     }
     if (node["assetParamsId"] != null)
     {
         this._AssetParamsId = ParseInt(node["assetParamsId"].Value <string>());
     }
 }
Exemple #4
0
        public OperationResource(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "resource":
                    this._Resource = ObjectFactory.Create <ContentResource>(propertyNode);
                    continue;

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

                case "assetParamsId":
                    this._AssetParamsId = ParseInt(propertyNode.InnerText);
                    continue;
                }
            }
        }