v3.1.2
2020.3+

Class Configuration

Inheritance
Configuration
Namespace: Unity.Services.Economy
Syntax
[Obsolete("The interface provided by Economy.Configuration has been replaced by EconomyService.Instance.Configuration, and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public class Configuration

Methods

GetCurrenciesAsync()

Declaration
[Obsolete("The interface provided by Economy.Configuration.GetCurrenciesAsync() has been replaced by EconomyService.Instance.Configuration.GetCurrenciesAsync(), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<List<CurrencyDefinition>> GetCurrenciesAsync()
Returns
TypeDescription
Task<List<CurrencyDefinition>>

GetCurrencyAsync(String)

Declaration
[Obsolete("The interface provided by Economy.Configuration.GetCurrencyAsync(string id) has been replaced by EconomyService.Instance.Configuration.GetCurrencyAsync(string id), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<CurrencyDefinition> GetCurrencyAsync(string id)
Parameters
TypeNameDescription
Stringid
Returns
TypeDescription
Task<CurrencyDefinition>

GetInventoryItemAsync(String)

Declaration
[Obsolete("The interface provided by Economy.Configuration.GetInventoryItemAsync(string id) has been replaced by EconomyService.Instance.Configuration.GetInventoryItemAsync(string id), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<InventoryItemDefinition> GetInventoryItemAsync(string id)
Parameters
TypeNameDescription
Stringid
Returns
TypeDescription
Task<InventoryItemDefinition>

GetInventoryItemsAsync()

Declaration
[Obsolete("The interface provided by Economy.Configuration.GetInventoryItemsAsync() has been replaced by EconomyService.Instance.Configuration.GetInventoryItemsAsync(), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<List<InventoryItemDefinition>> GetInventoryItemsAsync()
Returns
TypeDescription
Task<List<InventoryItemDefinition>>

GetRealMoneyPurchaseAsync(String)

Declaration
[Obsolete("The interface provided by Economy.Configuration.GetRealMoneyPurchaseAsync(string id) has been replaced by EconomyService.Instance.Configuration.GetRealMoneyPurchaseAsync(string id), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<RealMoneyPurchaseDefinition> GetRealMoneyPurchaseAsync(string id)
Parameters
TypeNameDescription
Stringid
Returns
TypeDescription
Task<RealMoneyPurchaseDefinition>

GetRealMoneyPurchasesAsync()

Declaration
[Obsolete("The interface provided by Economy.Configuration.GetRealMoneyPurchasesAsync() has been replaced by EconomyService.Instance.Configuration.GetRealMoneyPurchasesAsync(), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<List<RealMoneyPurchaseDefinition>> GetRealMoneyPurchasesAsync()
Returns
TypeDescription
Task<List<RealMoneyPurchaseDefinition>>

GetVirtualPurchaseAsync(String)

Declaration
[Obsolete("The interface provided by Economy.Configuration.GetVirtualPurchaseAsync(string id) has been replaced by EconomyService.Instance.Configuration.GetVirtualPurchaseAsync(string id), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<VirtualPurchaseDefinition> GetVirtualPurchaseAsync(string id)
Parameters
TypeNameDescription
Stringid
Returns
TypeDescription
Task<VirtualPurchaseDefinition>

GetVirtualPurchasesAsync()

Declaration
[Obsolete("The interface provided by Economy.Configuration.GetVirtualPurchasesAsync() has been replaced by EconomyService.Instance.Configuration.GetVirtualPurchasesAsync(), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<List<VirtualPurchaseDefinition>> GetVirtualPurchasesAsync()
Returns
TypeDescription
Task<List<VirtualPurchaseDefinition>>