Class PlayerResponse
Represents the player data.
Inherited Members
Namespace: Unity.Services.Apis.PlayerAuthentication
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "PlayerResponse")]
[Preserve]
public class PlayerResponse
Constructors
PlayerResponse(bool, List<ExternalId>, string, string, string, UsernamePasswordResponse)
Initializes a new instance of the Player
Declaration
[Preserve]
public PlayerResponse(bool disabled = false, List<ExternalId> externalIds = null, string id = null, string createdAt = null, string lastLoginAt = null, UsernamePasswordResponse usernamepassword = null)
Parameters
Type | Name | Description |
---|---|---|
bool | disabled | Whether the player is disabled by admin. (required). |
List<External |
externalIds | This is the response returned when get player is called. (required). |
string | id | The player Id. The Id is unique within the Id domain. (required). |
string | createdAt | When the player was created. It is a unix timestamp. (required). |
string | lastLoginAt | When the player last logged in. It is a unix timestamp. (required). |
Username |
usernamepassword | usernamepassword. |
Properties
CreatedAt
When the player was created. It is a unix timestamp.
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
string | When the player was created. It is a unix timestamp. |
Disabled
Whether the player is disabled by admin.
Declaration
[DataMember(Name = "disabled", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
bool | Whether the player is disabled by admin. |
ExternalIds
This is the response returned when get player is called.
Declaration
[DataMember(Name = "externalIds", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<ExternalId> ExternalIds { get; set; }
Property Value
Type | Description |
---|---|
List<External |
This is the response returned when get player is called. |
Id
The player Id. The Id is unique within the Id domain.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The player Id. The Id is unique within the Id domain. |
LastLoginAt
When the player last logged in. It is a unix timestamp.
Declaration
[DataMember(Name = "lastLoginAt", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string LastLoginAt { get; set; }
Property Value
Type | Description |
---|---|
string | When the player last logged in. It is a unix timestamp. |
Usernamepassword
Gets or Sets Usernamepassword
Declaration
[DataMember(Name = "usernamepassword", EmitDefaultValue = false)]
[Preserve]
public UsernamePasswordResponse Usernamepassword { get; set; }
Property Value
Type | Description |
---|---|
Username |