Пример #1
0
        internal Message UnsufficientPrivileges(ServerRightsLevel min)
        {
            SerializableStorage data = new SerializableStorage();

            data.Add("RequiredLevel", min);
            return(CreateMessage(ControlServerMessageType.UnsufficientRights, data));
        }
Пример #2
0
        internal Message RightsLevel(ServerRightsLevel level)
        {
            SerializableStorage data = new SerializableStorage();

            data.Add("level", (int)level);
            return(CreateMessage(ControlServerMessageType.AccessLevel, data));
        }
Пример #3
0
 public void SetAccessLevel(Access access, int id, ServerRightsLevel level)
 {
     if (!access.HasWriteAccess)
     {
         throw new Exception("Unsufficient access rights!");
     }
     _rightsLevelDic[id] = level;
 }
Пример #4
0
 public void SetAccessLevel(int connectionId, ServerRightsLevel level)
 {
     throw new NotImplementedException();
 }