コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: Auth.cs プロジェクト: jrudolph/do-plugins
 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);
 }