Class UsernamePasswordResponse
Information about the username/password account.
Inherited Members
Namespace: Unity.Services.Apis.PlayerAuthentication
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "UsernamePasswordResponse")]
[Preserve]
public class UsernamePasswordResponse
Constructors
UsernamePasswordResponse(string, string, string, string)
Initializes a new instance of the Username
Declaration
[Preserve]
public UsernamePasswordResponse(string username = null, string createdAt = null, string lastLoginAt = null, string passwordUpdatedAt = null)
Parameters
Type | Name | Description |
---|---|---|
string | username | The username. Case insensitive. Length must be between 3-20 with the allowed characters a-z, 0-9 and the symbols [.][-][@][_]. (required). |
string | createdAt | When the username/password account was created. It is a unix timestamp.. |
string | lastLoginAt | When the username/password account last logged in. It is a unix timestamp.. |
string | passwordUpdatedAt | When the username/password account password was last updated. It is a unix timestamp.. |
Properties
CreatedAt
When the username/password account was created. It is a unix timestamp.
Declaration
[DataMember(Name = "createdAt", EmitDefaultValue = false)]
[Preserve]
public string CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
string | When the username/password account was created. It is a unix timestamp. |
LastLoginAt
When the username/password account last logged in. It is a unix timestamp.
Declaration
[DataMember(Name = "lastLoginAt", EmitDefaultValue = false)]
[Preserve]
public string LastLoginAt { get; set; }
Property Value
Type | Description |
---|---|
string | When the username/password account last logged in. It is a unix timestamp. |
PasswordUpdatedAt
When the username/password account password was last updated. It is a unix timestamp.
Declaration
[DataMember(Name = "passwordUpdatedAt", EmitDefaultValue = false)]
[Preserve]
public string PasswordUpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
string | When the username/password account password was last updated. It is a unix timestamp. |
Username
The username. Case insensitive. Length must be between 3-20 with the allowed characters a-z, 0-9 and the symbols [.][-][@][_].
Declaration
[DataMember(Name = "username", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Username { get; set; }
Property Value
Type | Description |
---|---|
string | The username. Case insensitive. Length must be between 3-20 with the allowed characters a-z, 0-9 and the symbols [.][-][@][_]. |