Esempio n. 1
0
 /// <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>();
 }
Esempio n. 2
0
 /// <summary>
 /// Instantiate New UserHandler With Starting Size
 /// </summary>
 public UsersHandler(int amount)
 {
     users = new ThreadSafeDict <int, NetUser>(amount);
 }