Interface ITradeService
Assembly: cs.temp.dll.dll
Syntax
public interface ITradeService : IService, IInjectable
Methods
GetRandomValidTradeFromTrades(ITrade[])
Declaration
ITrade GetRandomValidTradeFromTrades(ITrade[] tradePool)
Parameters
Type |
Name |
Description |
ITrade[] |
tradePool |
An array of ITrades in the pool of potential trades.
|
Returns
GetRandomValidTradeFromTrades(String[])
Declaration
ITrade GetRandomValidTradeFromTrades(string[] tradePool)
Parameters
Type |
Name |
Description |
String[] |
tradePool |
An array of string IDs of ITrades in the pool of potential trades.
|
Returns
GetTrade(String)
Returns a trade with the specified instanceId
.
Declaration
ITrade GetTrade(string instanceId)
Parameters
Type |
Name |
Description |
String |
instanceId |
|
Returns
GetTrades(String[])
Returns an array of ITrade entities with Ids specified in instanceIds
array.
Declaration
ITrade[] GetTrades(string[] instanceIds)
Parameters
Type |
Name |
Description |
String[] |
instanceIds |
|
Returns
Returns all ITrade entities with the specified targetTagId
.
Declaration
ITrade[] GetTradesWithInputTag(string targetTagId)
Parameters
Type |
Name |
Description |
String |
targetTagId |
|
Returns
Returns all ITrade entities which contain all the input tags specified by targetTagIds
.
Declaration
ITrade[] GetTradesWithInputTags(string[] targetTagIds)
Parameters
Type |
Name |
Description |
String[] |
targetTagIds |
|
Returns
If a ITrade has the ITagData for "Business" and "Rare" then it will be returned when searching
for the Tag Ids "Business", "Rare" or "Business" + "Rare".
If a ITrade has only one ITagData for "Rare" then it will only be returned by a search for the
Tag Id "Business". The ITrade will not be returned by a search for the Tag Ids "Business" + "Rare".
GetTradesWithOutputTag(String)
Returns all ITrade objects with the specified targetTagId
.
Declaration
ITrade[] GetTradesWithOutputTag(string targetTagId)
Parameters
Type |
Name |
Description |
String |
targetTagId |
|
Returns
Returns all ITrade objects which contain all the output tags specified via by targetTagIds
.
Declaration
ITrade[] GetTradesWithOutputTags(string[] targetTagIds)
Parameters
Type |
Name |
Description |
String[] |
targetTagIds |
|
Returns
If a ITrade has the ITagData for "Business" and "Rare" then it will be returned when searching
for the Tag Ids "Business", "Rare" or "Business" + "Rare".
If a ITrade has only one ITagData for "Rare" then it will only be returned by a search for the
Tag Id "Business". The ITrade will not be returned by a search for the Tag Ids "Business" + "Rare".
Returns all ITrade objects with the specified inputTargetTagIds
and outputTargetTagIds
.
Declaration
ITrade[] GetTradesWithTags(string[] inputTargetTagIds, string[] outputTargetTagIds)
Parameters
Type |
Name |
Description |
String[] |
inputTargetTagIds |
|
String[] |
outputTargetTagIds |
|
Returns
If a ITrade has the ITagData for "Business" and "Rare" then it will be returned when searching
for the Tag Ids "Business", "Rare" or "Business" + "Rare".
If a ITrade has only one ITagData for "Rare" then it will only be returned by a search for the
Tag Id "Business". The ITrade will not be returned by a search for the Tag Ids "Business" + "Rare".