internal Auth(System.Xml.XmlElement element) { Token = element.SelectSingleNode("token").InnerText; Permissions = (AuthLevel)Enum.Parse(typeof(AuthLevel), element.SelectSingleNode("perms").InnerText, true); System.Xml.XmlNode node = element.SelectSingleNode("user"); _user = new FoundUser(node); }
internal Auth(System.Xml.XmlElement element) { Token = element.SelectSingleNode ("token").InnerText; Permissions = (AuthLevel)Enum.Parse (typeof (AuthLevel), element.SelectSingleNode ("perms").InnerText, true); System.Xml.XmlNode node = element.SelectSingleNode ("user"); _user = new FoundUser (node); }