public ERROR_CODE 유저_인증_완료(ConnectUser user) { if (user.SetAuthorized(user.UserID) == false) { return ERROR_CODE.USER_AUTH_ALREADY_SET_AUTH; } return ERROR_CODE.NONE; }
public ERROR_CODE AddUser(int sessionID) { if (UserSessionMap.ContainsKey(sessionID)) { return ERROR_CODE.ADD_USER_DUPLICATION_SESSION; } UserSequenceNumber += 1; var user = new ConnectUser(); user.Set(UserSequenceNumber, sessionID); UserSessionMap.Add(sessionID, user); return ERROR_CODE.NONE; }