Class CardTraderService
java.lang.Object
org.api.cardtrader.services.CardTraderService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProduct(@NonNull String identifier, @NonNull Identifier idRef, @NonNull double price, @NonNull int qty, String description, ConditionEnum condition, String userDataField) voidaddProductToCart(MarketProduct mk, Boolean ctZero, Integer qty, Address billingAddr, Address shippingAddr) voidclearCache(String k) voiddeleteProduct(@NonNull Integer identifier) voiddownloadProducts(@NonNull Integer gameId, @NonNull Integer categoryId, File f) voidenableCaching(boolean enable) getApp()getCategoryById(int id) getExpansionByCode(String code) getExpansionById(int id) getExpansionByName(String name) getGameById(int id) getOrderDetails(int idOrder) getToken()listBluePrints(@NonNull String name, Expansion set) listBluePrintsByExpansion(Integer expansionid) listBluePrintsByExpansion(Expansion expansion) listBluePrintsByName(@NonNull String name, Integer idSet) listExpansions(int idGame) listMarketProductByExpansion(Integer expansionid) listMarketProductByExpansion(Expansion expansion) listOrders(Integer page) voidsetForceExpansionLoadingIfNotFound(boolean forceExpansionLoadingIfNotFound) voidsetListener(URLCallListener urlCallListener) voidupdateProduct(@NonNull Integer identifier, Double price, Integer qty, String description, ConditionEnum condition, String userDataField)
-
Field Details
-
logger
protected org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
CardTraderService
-
-
Method Details
-
setForceExpansionLoadingIfNotFound
public void setForceExpansionLoadingIfNotFound(boolean forceExpansionLoadingIfNotFound) -
enableCaching
public void enableCaching(boolean enable) -
getToken
-
clearCache
-
getApp
-
listExpansions
-
listExpansions
-
listGames
-
listCategories
-
getCategoryById
-
getGameById
-
getExpansionById
-
getExpansionByName
-
getExpansionByCode
-
listMarketProduct
-
listStock
-
listStock
-
listMarketProductByBluePrint
-
listMarketProductByExpansion
-
listMarketProductByExpansion
-
getBluePrintById
-
listBluePrints
-
listBluePrintsByName
-
listBluePrintsByExpansion
-
listBluePrintsByExpansion
-
downloadProducts
public void downloadProducts(@NonNull Integer gameId, @NonNull Integer categoryId, File f) throws IOException - Throws:
IOException
-
addProduct
public Integer addProduct(@NonNull String identifier, @NonNull Identifier idRef, @NonNull double price, @NonNull int qty, String description, ConditionEnum condition, String userDataField) throws IOException - Throws:
IOException
-
addProductToCart
public void addProductToCart(MarketProduct mk, Boolean ctZero, Integer qty, Address billingAddr, Address shippingAddr) throws IOException - Throws:
IOException
-
updateProduct
public void updateProduct(@NonNull Integer identifier, Double price, Integer qty, String description, ConditionEnum condition, String userDataField) throws IOException - Throws:
IOException
-
deleteProduct
- Throws:
IOException
-
listOrders
-
getOrderDetails
-
setListener
-