Interface ICurrencyService
Assembly: cs.temp.dll.dll
Syntax
public interface ICurrencyService : IService, IInjectable
Methods
AddCurrencyAmount(CurrencyAmount)
Declaration
void AddCurrencyAmount(CurrencyAmount amount)
Parameters
AddCurrencyAmount(String, Double)
Declaration
void AddCurrencyAmount(string id, double amount)
Parameters
GetAllCurrencies()
Declaration
ICurrency[] GetAllCurrencies()
Returns
GetAllCurrencies<T>()
Returns the ICurrency that are assignable to type T.
Declaration
T[] GetAllCurrencies<T>()
where T : class, ICurrency
Returns
Type Parameters
GetAllCurrenciesWithAvailability(Boolean)
Returns all ICurrency that has the availability
Declaration
ICurrency[] GetAllCurrenciesWithAvailability(bool availability)
Parameters
| Type |
Name |
Description |
| Boolean |
availability |
|
Returns
Returns ICurrency entities which contain all of the tagIds specified.
Declaration
ICurrency[] GetCurrenciesWithAllTags(string[] tagIds)
Parameters
| Type |
Name |
Description |
| String[] |
tagIds |
|
Returns
GetCurrenciesWithAnyTag(String[])
Returns ICurrency entities which contain any of the tagIds specified.
Declaration
ICurrency[] GetCurrenciesWithAnyTag(string[] tagIds)
Parameters
| Type |
Name |
Description |
| String[] |
tagIds |
|
Returns
GetCurrenciesWithTag(String)
Returns all ICurrency which contain the tagId specified.
Declaration
ICurrency[] GetCurrenciesWithTag(string tagId)
Parameters
| Type |
Name |
Description |
| String |
tagId |
|
Returns
GetCurrency(String)
Declaration
ICurrency GetCurrency(string id)
Parameters
| Type |
Name |
Description |
| String |
id |
|
Returns
GetCurrency<T>(String)
Returns the ICurrency associated to the id as type T.
Declaration
T GetCurrency<T>(string id)
where T : class, ICurrency
Parameters
| Type |
Name |
Description |
| String |
id |
|
Returns
Type Parameters
GetCurrencyAmount(String)
Declaration
double GetCurrencyAmount(string id)
Parameters
| Type |
Name |
Description |
| String |
id |
|
Returns
HasCurrencyAmount(String, Double)
Returns true when the reserve of a specified ICurrency is equal to or greater than the amount specified.
Declaration
bool HasCurrencyAmount(string id, double amount)
Parameters
Returns
RemoveCurrencyAmount(CurrencyAmount)
Declaration
void RemoveCurrencyAmount(CurrencyAmount amount)
Parameters
RemoveCurrencyAmount(String, Double)
Declaration
void RemoveCurrencyAmount(string id, double amount)
Parameters
SetCurrencyAmount(CurrencyAmount)
Declaration
void SetCurrencyAmount(CurrencyAmount amount)
Parameters
SetCurrencyAmount(String, Double)
Sets a ICurrency of id to the provided amount
Declaration
void SetCurrencyAmount(string id, double amount)
Parameters