Class Team
Team model
Inherited Members
Namespace: Unity.Services.Matchmaker.Models
Assembly: Unity.Services.Matchmaker.dll
Syntax
[Preserve]
[DataContract(Name = "Team")]
public class Team
Constructors
Team(string, string, List<string>)
Creates an instance of Team.
Declaration
[Preserve]
public Team(string teamName = null, string teamId = null, List<string> playerIds = null)
Parameters
Type | Name | Description |
---|---|---|
string | teamName | The name of the team. The team name should be the same as the team name defined in the rules of matchmaking. |
string | teamId | The ID of the team. |
List<string> | playerIds | An array of player IDs that represent the players in a team. This ID must exist in the list of players of the Match Properties. |
Properties
PlayerIds
An array of player IDs that represent the players in a team. This ID must exist in the list of players of the Match Properties.
Declaration
[Preserve]
[DataMember(Name = "playerIds", EmitDefaultValue = false)]
public List<string> PlayerIds { get; }
Property Value
Type | Description |
---|---|
List<string> |
TeamId
The ID of the team.
Declaration
[Preserve]
[DataMember(Name = "teamId", EmitDefaultValue = false)]
public string TeamId { get; }
Property Value
Type | Description |
---|---|
string |
TeamName
The name of the team. The team name should be the same as the team name defined in the rules of matchmaking.
Declaration
[Preserve]
[DataMember(Name = "teamName", EmitDefaultValue = false)]
public string TeamName { get; }
Property Value
Type | Description |
---|---|
string |