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
Afficher le fichier Open project: Good4m/WindowsDefender Class Usage Examples

Méthodes publiques

Свойство Type Description
Users System.Collections.ArrayList

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

RemoveUser() public méthode

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.
Résultat void

Property Details

Users public_oe property

public ArrayList,System.Collections Users
Résultat System.Collections.ArrayList