Class ProductCatalogItem
Represents a single product from the product catalog. Each item contains some common fields and some fields that are specific to a particular store.
Inherited Members
Namespace: UnityEngine .Purchasing
Assembly: solution.dll
Syntax
[Serializable]
public class ProductCatalogItem
Fields
applePriceTier
The price tier for the Apple Store.
Declaration
public int applePriceTier
Field Value
Type | Description |
---|---|
int |
defaultDescription
The default localized description of the product.
Declaration
public LocalizedProductDescription defaultDescription
Field Value
Type | Description |
---|---|
Localized |
googlePrice
The price for GooglePlay.
Declaration
public Price googlePrice
Field Value
Type | Description |
---|---|
Price |
id
The ID of the item.
Declaration
public string id
Field Value
Type | Description |
---|---|
string |
pricingTemplateID
The price template for GooglePlay.
Declaration
public string pricingTemplateID
Field Value
Type | Description |
---|---|
string |
screenshotPath
Screenshot path for Apple configuration.
Declaration
public string screenshotPath
Field Value
Type | Description |
---|---|
string |
type
The ProductType
of the item.
Declaration
public ProductType type
Field Value
Type | Description |
---|---|
Product |
udpPrice
The price for UDP.
Declaration
public Price udpPrice
Field Value
Type | Description |
---|---|
Price |
Properties
HasAvailableLocale
Property that gets whether or not a valid locale is unassigned.
Declaration
public bool HasAvailableLocale { get; }
Property Value
Type | Description |
---|---|
bool | Whether or not a new locale is avalable. |
NextAvailableLocale
Property that gets the next avalaible locale on the list.
Declaration
public TranslationLocale NextAvailableLocale { get; }
Property Value
Type | Description |
---|---|
Translation |
The next avalable locale. |
Payouts
Gets the list of payouts for this product.
Declaration
public IList<ProductCatalogPayout> Payouts { get; }
Property Value
Type | Description |
---|---|
IList<Product |
The list of payouts |
allStoreIDs
Gets all of the StoreIds
associated with this item.
Declaration
public ICollection<StoreID> allStoreIDs { get; }
Property Value
Type | Description |
---|---|
ICollection<Store |
A collection of all store IDs for this item. |
translatedDescriptions
Property that gets the translated descriptions.
Declaration
public ICollection<LocalizedProductDescription> translatedDescriptions { get; }
Property Value
Type | Description |
---|---|
ICollection<Localized |
A collection of all translated descriptions. |
Methods
AddDescription(TranslationLocale)
Adds a default product description, localized to a specific locale.
Declaration
public LocalizedProductDescription AddDescription(TranslationLocale locale)
Parameters
Type | Name | Description |
---|---|---|
Translation |
locale | The locale of the description desired. |
Returns
Type | Description |
---|---|
Localized |
The localized description of this item. |
AddPayout()
Adds a new payout to the list.
Declaration
public void AddPayout()
Clone()
Creates a copy of this object.
Declaration
public ProductCatalogItem Clone()
Returns
Type | Description |
---|---|
Product |
A new instance of |
GetDescription(TranslationLocale)
Gets the product description, localized to a specific locale.
Declaration
public LocalizedProductDescription GetDescription(TranslationLocale locale)
Parameters
Type | Name | Description |
---|---|---|
Translation |
locale | The locale of the description desired. |
Returns
Type | Description |
---|---|
Localized |
The localized description of this item. |
GetOrCreateDescription(TranslationLocale)
Gets the product description, localized to a specific locale, or adds a default one if it's not already set.
Declaration
public LocalizedProductDescription GetOrCreateDescription(TranslationLocale locale)
Parameters
Type | Name | Description |
---|---|---|
Translation |
locale | The locale of the description desired. |
Returns
Type | Description |
---|---|
Localized |
The localized description of this item. |
GetStoreID(string)
Gets the store id by name.
Declaration
public string GetStoreID(string store)
Parameters
Type | Name | Description |
---|---|---|
string | store | The name of the store. |
Returns
Type | Description |
---|---|
string | The id of the store if found, otherwise returns null. |
RemoveDescription(TranslationLocale)
Removes a product description, localized to a specific locale.
Declaration
public void RemoveDescription(TranslationLocale locale)
Parameters
Type | Name | Description |
---|---|---|
Translation |
locale | The locale of the description desired. |
RemovePayout(ProductCatalogPayout)
Removes a payout to the list.
Declaration
public void RemovePayout(ProductCatalogPayout payout)
Parameters
Type | Name | Description |
---|---|---|
Product |
payout | The payout to be removed. |
SetStoreID(string, string)
Assigns or adds the a store for this item by name and id.
Declaration
public void SetStoreID(string aStore, string aId)
Parameters
SetStoreIDs(ICollection<StoreID>)
Assigns or modifies a collection of StoreID
s associated with this item.
Declaration
public void SetStoreIDs(ICollection<StoreID> storeIds)
Parameters
Type | Name | Description |
---|---|---|
ICollection<Store |
storeIds | The set of |