C# Класс GW2PAO.API.Services.CommerceService

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

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

Метод Описание
CommerceService ( ) : System

Default constructor

DoesItemExist ( string itemName, Data rarity, int level ) : bool

Returns true if the given item exists, else false

GetItem ( int itemID ) : GW2PAO.API.Data.Entities.Item

Returns the item information for the items with the given ID

GetItem ( string itemName, Data rarity, int level ) : GW2PAO.API.Data.Entities.Item

Returns the item information for the item with the given names

GetItemID ( string itemName, Data rarity, int level ) : int

Returns the item ID of the item with the given name

GetItemPrices ( ICollection itemIds ) : ItemPrices>.IDictionary

Returns the ItemPrices of the items with the given item IDs

GetItemPrices ( int itemId ) : GW2PAO.API.Data.Entities.ItemPrices

Returns the ItemPrices of the item with the given item ID

GetItems ( ICollection itemIDs ) : GW2PAO.API.Data.Entities.Item>.IDictionary

Returns the item information for the items with the given IDs

ReloadDatabase ( ) : void

Forces a re-load of the items database

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

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

Default constructor
public CommerceService ( ) : System
Результат System

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

Returns true if the given item exists, else false
public DoesItemExist ( string itemName, Data rarity, int level ) : bool
itemName string Name of the item
rarity Data Rarity of the item
level int Level of the item
Результат bool

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

Returns the item information for the items with the given ID
public GetItem ( int itemID ) : GW2PAO.API.Data.Entities.Item
itemID int ID of the item
Результат GW2PAO.API.Data.Entities.Item

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

Returns the item information for the item with the given names
public GetItem ( string itemName, Data rarity, int level ) : GW2PAO.API.Data.Entities.Item
itemName string Name of the item
rarity Data Rarity of the item
level int Level of the item
Результат GW2PAO.API.Data.Entities.Item

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

Returns the item ID of the item with the given name
public GetItemID ( string itemName, Data rarity, int level ) : int
itemName string Name of the item
rarity Data Rarity of the item
level int Level of the item
Результат int

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

Returns the ItemPrices of the items with the given item IDs
public GetItemPrices ( ICollection itemIds ) : ItemPrices>.IDictionary
itemIds ICollection The items to search for
Результат ItemPrices>.IDictionary

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

Returns the ItemPrices of the item with the given item ID
public GetItemPrices ( int itemId ) : GW2PAO.API.Data.Entities.ItemPrices
itemId int the item to retrieve the prices for
Результат GW2PAO.API.Data.Entities.ItemPrices

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

Returns the item information for the items with the given IDs
public GetItems ( ICollection itemIDs ) : GW2PAO.API.Data.Entities.Item>.IDictionary
itemIDs ICollection IDs of the items to retrieve
Результат GW2PAO.API.Data.Entities.Item>.IDictionary

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

Forces a re-load of the items database
public ReloadDatabase ( ) : void
Результат void