Table of Contents

Class DeviceCode

Namespace
TorBoxSDK.Models.User
Assembly
TorBoxSDK.dll

Represents the response from a device code authorization request.

public sealed record DeviceCode : IEquatable<DeviceCode>
Inheritance
DeviceCode
Implements
Inherited Members

Properties

DeviceCodeValue

Gets the device code used to poll for authorization, or null if not available.

[JsonPropertyName("device_code")]
public string? DeviceCodeValue { get; init; }

Property Value

string

ExpiresAt

Gets the date and time when the device code expires, or null if not available.

[JsonPropertyName("expires_at")]
public DateTimeOffset? ExpiresAt { get; init; }

Property Value

DateTimeOffset?

FriendlyVerificationUrl

Gets the user-friendly short verification URL, or null if not available.

[JsonPropertyName("friendly_verification_url")]
public string? FriendlyVerificationUrl { get; init; }

Property Value

string

Interval

Gets the polling interval in seconds for checking authorization status.

[JsonPropertyName("interval")]
public int Interval { get; init; }

Property Value

int

UserCode

Gets the user-facing code to enter on the verification page, or null if not available.

[JsonPropertyName("code")]
public string? UserCode { get; init; }

Property Value

string

VerificationUrl

Gets the URL where the user should enter the code, or null if not available.

[JsonPropertyName("verification_url")]
public string? VerificationUrl { get; init; }

Property Value

string