Loading...
Searching...
No Matches
AccelByte.Api.Items Class Reference

Provide an API to access Items service. More...

Inheritance diagram for AccelByte.Api.Items:

Public Member Functions

void GetItemById (string itemId, string region, string language, ResultCallback< PopulatedItemInfo > callback, string storeId="", bool populateBundle=false)
 Get ItemInfo by itemId.
void GetItemById (string itemId, string region, string language, bool autoCalcEstimatedPrice, ResultCallback< PopulatedItemInfo > callback, string storeId="", bool populateBundle=false)
 Get ItemInfo by itemId.
void GetItemsByCriteria (ItemCriteria criteria, ResultCallback< ItemPagingSlicedResult > callback)
 Get Items by criteria. Set ItemCriteria fields as null if you don't want to specify the criteria. The result callback will returns a ItemPagingSlicedResult that contains Items within it.
void GetItemByAppId (string appId, ResultCallback< ItemInfo > callback, string language="", string region="")
 Get item info by AppId.
void SearchItem (string language, string keyword, int offset, int limit, string region, ResultCallback< ItemPagingSlicedResult > callback)
 Search Item.
void SearchItem (string language, string keyword, int offset, int limit, string region, bool autoCalcEstimatedPrice, ResultCallback< ItemPagingSlicedResult > callback)
 Search Item.
void GetItemBySku (string sku, string language, string region, ResultCallback< ItemInfo > callback)
 Get item info by sku.
void GetItemBySku (string sku, string language, string region, bool autoCalcEstimatedPrice, ResultCallback< ItemInfo > callback)
 Get item info by sku.
void GetItemBySku (string sku, ResultCallback< ItemInfo > callback, bool autoCalcEstimatedPrice=false, string storeId=null, string language=null, string region=null)
 Get item info by sku.
void BulkGetLocaleItems (string[] itemIds, string language, string region, ResultCallback< ItemInfo[]> callback, string storeId="")
 Bulk Get Locale Items.
void BulkGetLocaleItems (string[] itemIds, string language, string region, bool autoCalcEstimatedPrice, ResultCallback< ItemInfo[]> callback, string storeId="")
 Bulk Get Locale Items.
void GetListAllStore (ResultCallback< PlatformStore[]> callback)
 Get list all stores in a namespace.
void GetEstimatedPrice (string[] itemIds, string region, ResultCallback< EstimatedPricesInfo[]> callback)
 Get estimated prices of an item.

Additional Inherited Members

Properties inherited from AccelByte.Core.WrapperBase
Utils.AccelByteIdValidator IdValidator [get]

Detailed Description

Provide an API to access Items service.

Member Function Documentation

◆ BulkGetLocaleItems() [1/2]

void AccelByte.Api.Items.BulkGetLocaleItems ( string[] itemIds,
string language,
string region,
bool autoCalcEstimatedPrice,
ResultCallback< ItemInfo[]> callback,
string storeId = "" )
inline

Bulk Get Locale Items.

Parameters
itemIdsItem IDs to get item
languagedisplay language
regionregion of items
autoCalcEstimatedPriceAuto Calculate Estimated Price. If autoCalcEstimatedPrice is true and item is flexible bundle, will auto calc price.
callbackReturns a result that contain ItemInfo via callback when completed.
storeIdIf it's leaved string empty, the value will be got from published store id on the namespace

◆ BulkGetLocaleItems() [2/2]

void AccelByte.Api.Items.BulkGetLocaleItems ( string[] itemIds,
string language,
string region,
ResultCallback< ItemInfo[]> callback,
string storeId = "" )
inline

Bulk Get Locale Items.

Parameters
itemIdsItem IDs to get item
callbackReturns a result that contain ItemInfo via callback when completed.
languagedisplay language
regionregion of items
storeIdIf it's leaved string empty, the value will be got from published store id on the namespace

◆ GetEstimatedPrice()

void AccelByte.Api.Items.GetEstimatedPrice ( string[] itemIds,
string region,
ResultCallback< EstimatedPricesInfo[]> callback )
inline

Get estimated prices of an item.

Parameters
itemIdsItem IDs to get the estimated items information
regionRegion Code, ISO 3166-1 alpha-2 country tag, e.g., "US", "CN".Item IDs to get item
callbackReturns a result that contain EstimatedPricesInfo array via callback when completed.

◆ GetItemByAppId()

void AccelByte.Api.Items.GetItemByAppId ( string appId,
ResultCallback< ItemInfo > callback,
string language = "",
string region = "" )
inline

Get item info by AppId.

Parameters
appIdAppId of an item
callbackReturns a result that contain ItemInfo via callback when completed.
languagedisplay language
regionregion of items

◆ GetItemById() [1/2]

void AccelByte.Api.Items.GetItemById ( string itemId,
string region,
string language,
bool autoCalcEstimatedPrice,
ResultCallback< PopulatedItemInfo > callback,
string storeId = "",
bool populateBundle = false )
inline

Get ItemInfo by itemId.

Parameters
itemIdItem ID to get item with
regionRegion of the item
languageDisplay language
autoCalcEstimatedPriceAuto Calculate Estimated Price. If autoCalcEstimatedPrice is true and item is flexible bundle, will auto calc price.
callbackReturns a Result that contains ItemInfo via callback when completed.
storeIdIf it's leaved string empty, the value will be got from published store id on the namespace
populateBundleWhether populate bundled items if it's a bundle, default value is false

◆ GetItemById() [2/2]

void AccelByte.Api.Items.GetItemById ( string itemId,
string region,
string language,
ResultCallback< PopulatedItemInfo > callback,
string storeId = "",
bool populateBundle = false )
inline

Get ItemInfo by itemId.

Parameters
itemIdItem ID to get item with
regionRegion of the item
languageDisplay language
callbackReturns a Result that contains ItemInfo via callback when completed.
storeIdIf it's leaved string empty, the value will be got from published store id on the namespace
populateBundleWhether populate bundled items if it's a bundle, default value is false

◆ GetItemBySku() [1/3]

void AccelByte.Api.Items.GetItemBySku ( string sku,
ResultCallback< ItemInfo > callback,
bool autoCalcEstimatedPrice = false,
string storeId = null,
string language = null,
string region = null )
inline

Get item info by sku.

Parameters
skuSku should contain specific number of item Sku
storeIdstore id to be queried
languagedisplay language
regionregion of items
autoCalcEstimatedPriceAuto Calculate Estimated Price. If autoCalcEstimatedPrice is true and item is flexible bundle, will auto calc price.
callbackReturns a result that contain ItemInfo via callback when completed.

◆ GetItemBySku() [2/3]

void AccelByte.Api.Items.GetItemBySku ( string sku,
string language,
string region,
bool autoCalcEstimatedPrice,
ResultCallback< ItemInfo > callback )
inline

Get item info by sku.

Parameters
skuSku should contain specific number of item Sku
languagedisplay language
regionregion of items
autoCalcEstimatedPriceAuto Calculate Estimated Price. If autoCalcEstimatedPrice is true and item is flexible bundle, will auto calc price.
callbackReturns a result that contain ItemInfo via callback when completed.

◆ GetItemBySku() [3/3]

void AccelByte.Api.Items.GetItemBySku ( string sku,
string language,
string region,
ResultCallback< ItemInfo > callback )
inline

Get item info by sku.

Parameters
skuSku should contain specific number of item Sku
languagedisplay language
regionregion of items
callbackReturns a result that contain ItemInfo via callback when completed.

◆ GetItemsByCriteria()

void AccelByte.Api.Items.GetItemsByCriteria ( ItemCriteria criteria,
ResultCallback< ItemPagingSlicedResult > callback )
inline

Get Items by criteria. Set ItemCriteria fields as null if you don't want to specify the criteria. The result callback will returns a ItemPagingSlicedResult that contains Items within it.

Parameters
criteriaCriteria to search items
callbackReturns a Result that contains ItemPagingSlicedResult via callback when completed.

◆ GetListAllStore()

void AccelByte.Api.Items.GetListAllStore ( ResultCallback< PlatformStore[]> callback)
inline

Get list all stores in a namespace.

Parameters
callbackReturns a result that contain PlatformStore via callback when completed.

◆ SearchItem() [1/2]

void AccelByte.Api.Items.SearchItem ( string language,
string keyword,
int offset,
int limit,
string region,
bool autoCalcEstimatedPrice,
ResultCallback< ItemPagingSlicedResult > callback )
inline

Search Item.

Parameters
languagedisplay language
keywordKeyword Item's keyword in title or description or long description
offsetoffset of items
limitlimit of items
regionRegion ISO 3166-1 alpha-2 country tag, e.g., "US", "CN".
autoCalcEstimatedPriceAuto Calculate Estimated Price. If autoCalcEstimatedPrice is true and item is flexible bundle, will auto calc price.
callbackReturns a result that contain ItemPagingSlicedResult via callback when completed.

◆ SearchItem() [2/2]

void AccelByte.Api.Items.SearchItem ( string language,
string keyword,
int offset,
int limit,
string region,
ResultCallback< ItemPagingSlicedResult > callback )
inline

Search Item.

Parameters
languagedisplay language
keywordKeyword Item's keyword in title or description or long description
offsetoffset of items
limitlimit of items
regionRegion ISO 3166-1 alpha-2 country tag, e.g., "US", "CN".
callbackReturns a result that contain ItemPagingSlicedResult via callback when completed.