C# Class GW2PAO.API.Services.CommerceService

Inheritance: ICommerceService
Afficher le fichier Open project: SamHurne/gw2pao Class Usage Examples

Méthodes publiques

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

Method Details

CommerceService() public méthode

Default constructor
public CommerceService ( ) : System
Résultat System

DoesItemExist() public méthode

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

GetItem() public méthode

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
Résultat GW2PAO.API.Data.Entities.Item

GetItem() public méthode

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
Résultat GW2PAO.API.Data.Entities.Item

GetItemID() public méthode

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

GetItemPrices() public méthode

Returns the ItemPrices of the items with the given item IDs
public GetItemPrices ( ICollection itemIds ) : ItemPrices>.IDictionary
itemIds ICollection The items to search for
Résultat ItemPrices>.IDictionary

GetItemPrices() public méthode

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
Résultat GW2PAO.API.Data.Entities.ItemPrices

GetItems() public méthode

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
Résultat GW2PAO.API.Data.Entities.Item>.IDictionary

ReloadDatabase() public méthode

Forces a re-load of the items database
public ReloadDatabase ( ) : void
Résultat void