Table of Contents

Class Subscription

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

Represents the store subscription that serves an account; it is there only where the account has one.

public class Subscription
Inheritance
Subscription
Inherited Members

Properties

BillingPeriod

Gets or sets the period PriceAmount pays for, as an ISO 8601 duration (P1M, P1Y), or null.

public string? BillingPeriod { get; set; }

Property Value

string

CreatedTime

Gets or sets when the account backend first recorded the subscription, or null.

public DateTime? CreatedTime { get; set; }

Property Value

DateTime?

ExpirationTime

Gets or sets when the current period ends, or null.

public DateTime? ExpirationTime { get; set; }

Property Value

DateTime?

IsAutoRenew

Gets or sets a value indicating whether the subscription renews at the period's end, or null where that is not known.

public bool? IsAutoRenew { get; set; }

Property Value

bool?

Management

Gets or sets where the subscription can be managed from this device, or why not. The default is AnotherStore.

public SubscriptionManagement Management { get; set; }

Property Value

SubscriptionManagement

Remarks

The account provider sets it, as it knows both the store that billed it and what this device can show. The UI gets no store address: the app opens the store's screen itself.

PriceAmount

Gets or sets the last charge the store reported for the subscription, not a list price, or null.

public decimal? PriceAmount { get; set; }

Property Value

decimal?

PriceCurrency

Gets or sets the currency of PriceAmount, or null.

public string? PriceCurrency { get; set; }

Property Value

string

StoreId

Gets or sets the ID of the store that billed the subscription, as googleplay, appstore or microsoft.

public required string StoreId { get; set; }

Property Value

string

Remarks

It can differ from the store this build comes from, as for a subscription bought on Android with an iPhone now signed in: the app decides by it, and the UI never shows it.