Esempio n. 1
0
 public void AddUserPermission(string name, Permission type)
 {
     var permissions = EnsureExists("Permissions");
     var elem = new XElement(type.PermissionName);
     permissions.Add(elem);
     elem.Add(new XAttribute("Hostname", name));
 }
Esempio n. 2
0
 static void AddPermission(Permission permission)
 {
     Permissions.Add(permission.PermissionName, permission);
 }
Esempio n. 3
0
 public MessageSource(string hostname, string nickname, Permission permission)
 {
     Hostname = hostname;
     Nickname = nickname;
     Permission = permission;
 }