Class PlayerPolicy
A player policy consists of an array of Policy statements that make up the Resource Policy for a player
Inherited Members
Namespace: Unity.Services.Apis.Admin.AccessPolicy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "PlayerPolicy")]
[Preserve]
public class PlayerPolicy
Constructors
PlayerPolicy(string, List<PlayerStatement>)
Initializes a new instance of the Player
Declaration
[Preserve]
public PlayerPolicy(string playerId = null, List<PlayerStatement> statements = null)
Parameters
Type | Name | Description |
---|---|---|
string | playerId | playerId (required). |
List<Player |
statements | statements (required). |
Properties
PlayerId
Gets or Sets PlayerId
Declaration
[DataMember(Name = "playerId", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string PlayerId { get; set; }
Property Value
Type | Description |
---|---|
string |
Statements
Gets or Sets Statements
Declaration
[DataMember(Name = "statements", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<PlayerStatement> Statements { get; set; }
Property Value
Type | Description |
---|---|
List<Player |