public SiteRestriction(JToken node) : base(node)
 {
     if (node["siteRestrictionType"] != null)
     {
         this._SiteRestrictionType = (SiteRestrictionType)ParseEnum(typeof(SiteRestrictionType), node["siteRestrictionType"].Value <string>());
     }
     if (node["siteList"] != null)
     {
         this._SiteList = node["siteList"].Value <string>();
     }
 }
Ejemplo n.º 2
0
        public SiteRestriction(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "siteRestrictionType":
                    this._SiteRestrictionType = (SiteRestrictionType)ParseEnum(typeof(SiteRestrictionType), propertyNode.InnerText);
                    continue;

                case "siteList":
                    this._SiteList = propertyNode.InnerText;
                    continue;
                }
            }
        }