Table of Contents

Class AppPurchaseOptions

Namespace
VpnHood.AppLib.Api.Premium
Assembly
VpnHood.AppLib.Api.dll

Represents where the person can buy a premium plan for a VPN profile: the in-app store's plans, the server operator's own shop, or a premium code they type.

public class AppPurchaseOptions
Inheritance
AppPurchaseOptions
Inherited Members

Remarks

It offers one purchase surface: where the operator names its own shop and the build may open one, the in-app store is not asked.

Properties

CanGoPremiumByCode

Gets a value indicating whether the person may go premium by typing a premium code: the server's policy offers it, and the build takes typed codes.

public required bool CanGoPremiumByCode { get; init; }

Property Value

bool

IsStoreAvailable

Gets a value indicating whether the in-app store has plans to sell.

public required bool IsStoreAvailable { get; init; }

Property Value

bool

PurchaseUrl

Gets the server operator's own shop, or null where it names none or the build may not open one, as a store's build.

public required Uri? PurchaseUrl { get; init; }

Property Value

Uri

StoreError

Gets why the in-app store could not be read, or null.

public required ApiError? StoreError { get; init; }

Property Value

ApiError

SubscriptionPlans

Gets the in-app store's plans, as the store prices them; none where it was not asked or has none.

public required IReadOnlyList<SubscriptionPlan> SubscriptionPlans { get; init; }

Property Value

IReadOnlyList<SubscriptionPlan>