Class GenerateCodeResponse
Response for code linking with information on the code.
Inherited Members
Namespace: Unity.Services.Apis.PlayerAuthentication
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "GenerateCodeResponse")]
[Preserve]
public class GenerateCodeResponse
Constructors
GenerateCodeResponse(string, string, string)
Initializes a new instance of the Generate
Declaration
[Preserve]
public GenerateCodeResponse(string codeLinkSessionId = null, string signInCode = null, string expiration = null)
Parameters
Type | Name | Description |
---|---|---|
string | codeLinkSessionId | UUID identifying the code linking session. (required). |
string | signInCode | The code required to perform the code confirmation. (required). |
string | expiration | The timestamp for when the code is no longer valid in unix time since epoch. (required). |
Properties
CodeLinkSessionId
UUID identifying the code linking session.
Declaration
[DataMember(Name = "codeLinkSessionId", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string CodeLinkSessionId { get; set; }
Property Value
Type | Description |
---|---|
string | UUID identifying the code linking session. |
Expiration
The timestamp for when the code is no longer valid in unix time since epoch.
Declaration
[DataMember(Name = "expiration", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Expiration { get; set; }
Property Value
Type | Description |
---|---|
string | The timestamp for when the code is no longer valid in unix time since epoch. |
SignInCode
The code required to perform the code confirmation.
Declaration
[DataMember(Name = "signInCode", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string SignInCode { get; set; }
Property Value
Type | Description |
---|---|
string | The code required to perform the code confirmation. |