コード例 #1
0
        public void UserSignedOff(string accountName)
        {
            if (!UsersByAccountName.ContainsKey(accountName))
            {
                return;
            }

            var user = UsersByAccountName[accountName];

            user.UserStatus = new UserStatus(UserStatusType.Offline);
            OnlineUsers.Remove(user.Id);
        }
コード例 #2
0
        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);
        }