/// <summary> /// Create New NetUser /// </summary> /// <param name="loginData">Set Name And Email From Login Data</param> /// <param name="id">The User ID</param> internal NetUser(LoginInfo loginData, int id) { Email = loginData.Email; Name = loginData.Name; ID = id; PrivateChats = new ThreadSafeDict <int, NetUser>(); GroupChats = new ThreadSafeDict <Guid, GroupChat>(); }
/// <summary> /// Instantiate New UserHandler With Starting Size /// </summary> public UsersHandler(int amount) { users = new ThreadSafeDict <int, NetUser>(amount); }