C# Класс Connectster.Shopster.ShopsterCommunicator

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

GetAllInventoryItemsForUser() публичный Метод

public GetAllInventoryItemsForUser ( ConnectsterApiContext apiContext, string group ) : List
apiContext Connectster.Server.ConnectsterApiContext
group string
Результат List

GetCategory() публичный Метод

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
Результат InventoryCategoryType

Instance() публичный статический Метод

public static Instance ( ) : ShopsterCommunicator
Результат ShopsterCommunicator

PlaceOrder() публичный Метод

Places an order on shopster.
public PlaceOrder ( ApiContext apiContext, IOrder orderToPlace, int>.Dictionary productMap ) : int?
apiContext ApiContext
orderToPlace IOrder
productMap int>.Dictionary
Результат int?