Table of Contents

Class ErrorContext

Namespace
VpnHood.AppUi.Common
Assembly
VpnHood.AppUi.Common.dll

Represents what the sentence and the buttons for a failure depend on besides the failure: the session's and the profile's standing, and what the app asks for, as the UI holding the app's state reads them.

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

Properties

CanImportAccessCode

Gets a value indicating whether a premium code can be typed for the current VPN profile.

public bool CanImportAccessCode { get; init; }

Property Value

bool

CanTryPremium

Gets a value indicating whether the current VPN profile offers a premium trial.

public bool CanTryPremium { get; init; }

Property Value

bool

HasAccessCode

Gets a value indicating whether the current VPN profile has a premium code.

public bool HasAccessCode { get; init; }

Property Value

bool

HasDiagnoseRequested

Gets a value indicating whether the person asked for a diagnosis, so a diagnosis is not offered again.

public bool HasDiagnoseRequested { get; init; }

Property Value

bool

HasVpnProfile

Gets a value indicating whether there is a VPN profile.

public bool HasVpnProfile { get; init; }

Property Value

bool

IsCustomDnsPremiumFeature

Gets a value indicating whether custom DNS is sold as premium, so a private DNS that blocks the ad has a page of its own.

public bool IsCustomDnsPremiumFeature { get; init; }

Property Value

bool

IsPremiumByAccount

Gets a value indicating whether the premium comes from the account's subscription.

public bool IsPremiumByAccount { get; init; }

Property Value

bool

IsPremiumSupported

Gets a value indicating whether the build has a premium tier.

public bool IsPremiumSupported { get; init; }

Property Value

bool

IsPremiumUser

Gets a value indicating whether the current VPN profile is premium.

public bool IsPremiumUser { get; init; }

Property Value

bool

PromptForLog

Gets a value indicating whether the app asks for a report, so every dialog offers it.

public bool PromptForLog { get; init; }

Property Value

bool