public void UserSignedOff(string accountName) { if (!UsersByAccountName.ContainsKey(accountName)) { return; } var user = UsersByAccountName[accountName]; user.UserStatus = new UserStatus(UserStatusType.Offline); OnlineUsers.Remove(user.Id); }
public void UserSignedOn(string accountName) { if (!UsersByAccountName.ContainsKey(accountName)) { return; } var user = UsersByAccountName[accountName]; user.UserStatus = new UserStatus(UserStatusType.Available); OnlineUsers.Add(user.Id, user); }