C# Class Connectster.Shopster.ShopsterCommunicator

Afficher le fichier Open project: shopster/NconnectSter Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GetAllInventoryItemsForUser ( ConnectsterApiContext apiContext, string group ) : List
apiContext Connectster.Server.ConnectsterApiContext
group string
Résultat List

GetCategory() public méthode

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
Résultat InventoryCategoryType

Instance() public static méthode

public static Instance ( ) : ShopsterCommunicator
Résultat ShopsterCommunicator

PlaceOrder() public méthode

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