C# Class GW2PAO.API.Services.CommerceService

Inheritance: ICommerceService
Exibir arquivo Open project: SamHurne/gw2pao Class Usage Examples

Public Methods

Method 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 method

Default constructor
public CommerceService ( ) : System
return System

DoesItemExist() public method

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
return bool

GetItem() public method

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
return GW2PAO.API.Data.Entities.Item

GetItem() public method

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
return GW2PAO.API.Data.Entities.Item

GetItemID() public method

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
return int

GetItemPrices() public method

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

GetItemPrices() public method

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
return GW2PAO.API.Data.Entities.ItemPrices

GetItems() public method

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
return GW2PAO.API.Data.Entities.Item>.IDictionary

ReloadDatabase() public method

Forces a re-load of the items database
public ReloadDatabase ( ) : void
return void