C# Class Connectster.Shopster.ShopsterCommunicator

Exibir arquivo Open project: shopster/NconnectSter Class Usage Examples

Public Methods

Method Description
GetAllInventoryItemsForUser ( ConnectsterApiContext apiContext, string group ) : List
GetCategory ( ApiContext apiContext, int categoryId ) : InventoryCategoryType

Tries to get the category (either from the communicator's cache, or from API if not in cache)

Instance ( ) : ShopsterCommunicator
PlaceOrder ( ApiContext apiContext, IOrder orderToPlace, int>.Dictionary productMap ) : int?

Places an order on shopster.

Private Methods

Method Description
GetCategoryFromApi ( ApiContext apiContext, int categoryId ) : List

Attempts to get a category from the API, it makes no guarantees that it will succeed.

GetPageOfInventoryCategories ( ApiContext apiContext, int pageNum, int pageSize ) : List
ShopsterCommunicator ( ) : System

Method Details

GetAllInventoryItemsForUser() public method

public GetAllInventoryItemsForUser ( ConnectsterApiContext apiContext, string group ) : List
apiContext Connectster.Server.ConnectsterApiContext
group string
return List

GetCategory() public method

Tries to get the category (either from the communicator's cache, or from API if not in cache)
public GetCategory ( ApiContext apiContext, int categoryId ) : InventoryCategoryType
apiContext ApiContext
categoryId int
return InventoryCategoryType

Instance() public static method

public static Instance ( ) : ShopsterCommunicator
return ShopsterCommunicator

PlaceOrder() public method

Places an order on shopster.
public PlaceOrder ( ApiContext apiContext, IOrder orderToPlace, int>.Dictionary productMap ) : int?
apiContext ApiContext
orderToPlace IOrder
productMap int>.Dictionary
return int?