Class Team
Team
Inherited Members
Namespace: Unity.Services.Apis.Matchmaker
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "Team")]
[Preserve]
public class Team
Constructors
Team(string, string, List<string>)
Initializes a new instance of the Team class.
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
[DataMember(Name = "playerIds", EmitDefaultValue = false)]
[Preserve]
public List<string> PlayerIds { get; set; }
Property Value
Type | Description |
---|---|
List<string> | 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. |
TeamId
The ID of the team.
Declaration
[DataMember(Name = "teamId", EmitDefaultValue = false)]
[Preserve]
public string TeamId { get; set; }
Property Value
Type | Description |
---|---|
string | The ID of the team. |
TeamName
The name of the team. The team name should be the same as the team name defined in the rules of matchmaking.
Declaration
[DataMember(Name = "teamName", EmitDefaultValue = false)]
[Preserve]
public string TeamName { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the team. The team name should be the same as the team name defined in the rules of matchmaking. |