C# 클래스 WindowsDefender_WebApp.Match

This class that handles the information about a match. Functionality: We can add a user or remove a user to the match.
Authors: Jeff, Rosanna, Jens (Server Team). Comments by Nadia and Rosanna. Updated by: NA
파일 보기 프로젝트 열기: Good4m/WindowsDefender 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Users System.Collections.ArrayList

공개 메소드들

메소드 설명
AddUser ( User user ) : bool

Adds a user to the match. Uses a monitor lock to ensure multiple users are not writing to the list at the same time.

RemoveUser ( User user ) : void

Remove user from match and re-assign the match host if needed. Uses a monitor lock to ensure multiple users are not writing to the list at the same time.

메소드 상세

AddUser() 공개 메소드

Adds a user to the match. Uses a monitor lock to ensure multiple users are not writing to the list at the same time.
public AddUser ( User user ) : bool
user User The user to be added.
리턴 bool

RemoveUser() 공개 메소드

Remove user from match and re-assign the match host if needed. Uses a monitor lock to ensure multiple users are not writing to the list at the same time.
public RemoveUser ( User user ) : void
user User The user to remove from the match.
리턴 void

프로퍼티 상세

Users 공개적으로 프로퍼티

public ArrayList,System.Collections Users
리턴 System.Collections.ArrayList