public static void RegisterUser(Session session, MatchingRole role) { if (FindUser(session.RiotUser.Id) != null) { return; } MatchingUser matchingUser = new MatchingUser(session.RiotUser.Id, role); lock (mSync) { mUsers.Add(matchingUser); mRoles.Add(role); } }
public MatchingUser(String summonerId, MatchingRole role) { SummonerId = summonerId; Role = role; }