Skip to main content

ProjectVShopOfferView class

One Shop offer as the server sells it: price, how many units one purchase may contain, and the purchase limit. Read-only; a change on the server arrives as a new instance.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Shop

public sealed class ProjectVShopOfferView

Properties​

PropertyTypeDescription
OfferIdProjectVShopOfferIdThe offer's ID. Pass OfferId.Value to IProjectVShopScreen.PurchaseAsync.
CatalogVersionstringThe server catalog version this offer belongs to. Not needed in UI.
OfferRevisionstringThe server revision of this offer. Not needed in UI.
QuantityMinlongThe smallest quantity one purchase may contain; start the quantity picker here.
QuantityMaxlongThe largest quantity one purchase may contain.
WalletPricelongThe price of one unit, in WalletCurrencyId.
IsIapboolTrue for a store (in-app purchase) offer. These are not sold yet; a purchase fails.
IapPriceMinorlongThe store price in minor units (cents), for store offers only.
IapCurrencystringThe store price currency, such as USD, for store offers only.
LimitKindProjectVShopLimitKindHow often the purchase limit resets.
LimitCountlongHow many units may be bought per limit period; 0 when LimitKind is None.
PurchaseCountlongHow many units were bought in the current limit period.
PurchaseLimitReachedboolTrue when no more units can be bought in the current limit period.
WalletCurrencyIdstringThe currency of WalletPrice, such as core_dust, when the price uses exactly one currency; empty otherwise. Only a non-empty value lets you work out how many units the player can afford.