C# Class 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
Show file Open project: Good4m/WindowsDefender Class Usage Examples

Public Properties

Property Type Description
Users System.Collections.ArrayList

Public Methods

Method Description
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.

Method Details

AddUser() public method

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.
return bool

RemoveUser() public method

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.
return void

Property Details

Users public property

public ArrayList,System.Collections Users
return System.Collections.ArrayList