Class BanPlayerRequest
Request for banning a player
Inherited Members
Namespace: Unity.Services.Apis.UGC
Assembly: solution.dll
Syntax
[Preserve]
public class BanPlayerRequest
Constructors
BanPlayerRequest(string, string)
Initializes a new instance of the BanPlayerRequest class.
Declaration
[Preserve]
public BanPlayerRequest(string playerId = null, string reason = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | playerId | The Player ID to ban (required). |
| string | reason | A reason for the ban (required). |
Properties
PlayerId
The Player ID to ban
Declaration
[Preserve]
public string PlayerId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The Player ID to ban |
Reason
A reason for the ban
Declaration
[Preserve]
public string Reason { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A reason for the ban |