Table of Contents

Class Account

Namespace
VpnHood.AppLib.Api.Accounts
Assembly
VpnHood.AppLib.Api.dll

Represents the signed-in person's account, as the account backend gives it.

public class Account
Inheritance
Account
Inherited Members

Properties

AccessCodeInfo

Gets or sets the premium code the account serves, or null where it serves none.

public AccessCodeInfo? AccessCodeInfo { get; set; }

Property Value

AccessCodeInfo

Remarks

The account backend picks it at each read from what the account holds, what is paid for now first. Its expiry informs the UI; only the access server's refusal ends the code's use.

Email

Gets or sets the person's email address, or null where the account's identity carries none.

public string? Email { get; set; }

Property Value

string

Name

Gets or sets the person's name, or null.

public string? Name { get; set; }

Property Value

string

Subscription

Gets or sets the store subscription that serves the account, or null where none does.

public Subscription? Subscription { get; set; }

Property Value

Subscription

UserId

Gets or sets the account backend's ID of the person: the account's identity, and the one member always set.

public required string UserId { get; set; }

Property Value

string

Remarks

The email address cannot serve as one: it can change, and an identity may carry none.