internal Message UnsufficientPrivileges(ServerRightsLevel min) { SerializableStorage data = new SerializableStorage(); data.Add("RequiredLevel", min); return(CreateMessage(ControlServerMessageType.UnsufficientRights, data)); }
internal Message RightsLevel(ServerRightsLevel level) { SerializableStorage data = new SerializableStorage(); data.Add("level", (int)level); return(CreateMessage(ControlServerMessageType.AccessLevel, data)); }
public void SetAccessLevel(Access access, int id, ServerRightsLevel level) { if (!access.HasWriteAccess) { throw new Exception("Unsufficient access rights!"); } _rightsLevelDic[id] = level; }
public void SetAccessLevel(int connectionId, ServerRightsLevel level) { throw new NotImplementedException(); }