Table of Contents

Class Account

Namespace
VpnHood.AppLib.Abstractions.Accounts
Assembly
VpnHood.AppLib.Abstractions.dll

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

public class Account
Inheritance
Account
Inherited Members

Properties

AccessCodeInfo

THE one code this account serves, or null when it serves none. The backend ranks everything the account holds — whatever is being paid for right now first, then the best of the rest — and recomputes the winner on every read, so the app is handed a code and never a list, and never picks. Its expiry is the backend's and is advisory; only an access-server refusal ends use of a credential.

public AccessCodeInfo? AccessCodeInfo { get; set; }

Property Value

AccessCodeInfo

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

The store subscription serving this account, or null when none does.

public Subscription? Subscription { get; set; }

Property Value

Subscription

UserId

The backend's own identifier for this person — the account's identity, and the only member guaranteed to be here. Email cannot serve that role: it is mutable, and an account may be held through an identity that carries no address at all.

public required string UserId { get; set; }

Property Value

string