Method GetInventoryItemAsync
GetInventoryItemAsync(string)
Gets a InventoryItemDefinition for a specific currency.
Declaration
[Obsolete("GetInventoryItemAsync has been replaced by first caching your configuration using SyncConfigurationAsync and then using the GetInventoryItem method. This API will be removed in an upcoming release.", false)]
Task<InventoryItemDefinition> GetInventoryItemAsync(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The configuration ID of the item to fetch. |
Returns
Type | Description |
---|---|
Task<InventoryItemDefinition> | A InventoryItemDefinition for the specified currency, or null if the currency doesn't exist. |
Exceptions
Type | Condition |
---|---|
EconomyException | Thrown if request is unsuccessful |