Author |
Thread Statistics | Show CCP posts - 2 post(s) |

Evo YaMing
|
Posted - 2009.12.11 11:11:00 -
[1]
Hi Amida, i am trying to receive EVE mail messages but the only thing i receive is a empty list.
List<MailMessage> myevemail = api.GetCharacterMailMessages();
Any idea?
|

Evo YaMing
|
Posted - 2010.03.26 13:13:00 -
[2]
Hi Amida! I am having trouble to find Productstatistics for a specific region via evecentralmarketapi. I can get the Productstatics for the Universe but has soon as i try to specify a region i am getting a empty list back. There was a Forum post in this section with this problem in the past but noone had a solution so i am asking again.
Code:
EveAI.DataCore dataCore = new EveAI.DataCore(); EveAI.DataReader reader = new EveAI.StaticDataDataReader(dataCore); reader.Read(EveAI.DataTypes.Products); EveCentralMarketApi marketApi = new EveCentralMarketApi(dataCore);
System.Collections.Generic.List<EveAI.Product.ProductType> components = new System.Collections.Generic.List<EveAI.Product.ProductType>(); product = dataCore.ProductTypes.First(p => p.Name == "Nanotransistors"); components.Add(product); product = dataCore.ProductTypes.First(p => p.Name == "Tungsten Carbide"); components.Add(product); int regionID = 10000002; // The Forge region = dataCore.FindRegion(regionID); System.Collections.Generic.List<EveAI.Live.Market.ProductStatistics> eveCentralProductPrices = new System.Collections.Generic.List<EveAI.Live.Market.ProductStatistics>(); eveCentralProductPrices = marketApi.GetProductStatistics(components,region );
Anybody got a solution or has a guess why this is not working.
Thx
|

Evo YaMing
|
Posted - 2010.03.26 21:04:00 -
[3]
Sorry Amida i posted some **** of Code. But i have done my homework now. So here is my Code again //----Components Selection---------------------------------------------------------------------------- EveAI.DataCore dataCore = new EveAI.DataCore(); EveAI.DataReader readerPro = new EveAI.StaticDataDataReader(dataCore); readerPro.Read(EveAI.DataTypes.Products); System.Collections.Generic.List<EveAI.Product.ProductType> components = new System.Collections.Generic.List<EveAI.Product.ProductType>(); EveAI.Product.ProductType product = new EveAI.Product.ProductType(); product = dataCore.ProductTypes.First(p => p.Name == "Nanotransistors"); components.Add(product); product = dataCore.ProductTypes.First(p => p.Name == "Tungsten Carbide"); components.Add(product); // EVE - Regionen Selection--------------------------------------------------------------------------------------------- //Regionenauswahl EveAI.DataCore dataCoreReg = new EveAI.DataCore(); dataCoreReg = new EveAI.DataCore(); EveAI.DataReader reader = new EveAI.StaticDataDataReader(dataCoreReg); reader.Read(EveAI.DataTypes.BasicMapData); System.Collections.Generic.List<EveAI.Map.Region> region = new System.Collections.Generic.List<EveAI.Map.Region>(); EveAI.Map.Region myregion = new EveAI.Map.Region(); myregion = dataCoreReg.Regions.First(p => p.Name == "The Forge"); //myregion = dataCoreReg.FindRegion(regionID); region.Add(myregion); // GEt Stats from EVECentral------------------------------------------------------------------------------------------ EveCentralMarketApi marketApi = new EveCentralMarketApi(dataCore); System.Collections.Generic.List<EveAI.Live.Market.ProductStatistics> eveCentralProductPrices = new System.Collections.Generic.List<EveAI.Live.Market.ProductStatistics>(); long myquant = 20000; TimeSpan mytime = new TimeSpan(2, 12, 0, 0); eveCentralProductPrices = marketApi.GetProductStatistics(components, region, mytime, myquant); //-------------------------------------------------------------------------------------------------------------------- //35910.490688192.168.0.10038.113.114.184HTTPGET /api/marketstat?typeid=16681&typeid=16672®ionlimit=-1&hours=60&minQ=20000 HTTP/1.1 //i captured the HHTP request with Wireshark -------- look at the regionlimit=-1
Looks like i am having trouble with the region. But i dont know where the Problem is because when i am debugging the code step by step i have got the correct region.
|

Evo YaMing
|
Posted - 2010.03.29 09:46:00 -
[4]
A now everyything works fine. Big thanks Amida.
|

Evo YaMing
|
Posted - 2010.04.07 12:25:00 -
[5]
i recognized something. Somehow LowSec POSes need with this Library Starbase chartes while Highsec and Wormhole Poses dont need those Charters. Anybody can confirm this?
|
|
|