public FlavorAssetWithParams(JToken node) : base(node)
 {
     if (node["flavorAsset"] != null)
     {
         this._FlavorAsset = ObjectFactory.Create <FlavorAsset>(node["flavorAsset"]);
     }
     if (node["flavorParams"] != null)
     {
         this._FlavorParams = ObjectFactory.Create <FlavorParams>(node["flavorParams"]);
     }
     if (node["entryId"] != null)
     {
         this._EntryId = node["entryId"].Value <string>();
     }
 }
Beispiel #2
0
        public FlavorAssetWithParams(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "flavorAsset":
                    this._FlavorAsset = ObjectFactory.Create <FlavorAsset>(propertyNode);
                    continue;

                case "flavorParams":
                    this._FlavorParams = ObjectFactory.Create <FlavorParams>(propertyNode);
                    continue;

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