private static void Main(string[] args) { /* <evec_api method="quicklook" version="2.0"> <quicklook> <item>34</item> <itemname>Tritanium</itemname> <regions/> <hours>360</hours> <minqty>10001</minqty> <sell_orders> <order id="2634176553"> <region>10000038</region> <station>60006829</station> <station_name>Kuomi VI - Moon 2 - Ducia Foundry Refinery</station_name> <security>0.567863363808865</security> <range>32767</range> <price>6.00</price> <vol_remain>4139299</vol_remain> <min_volume>1</min_volume> <expires>2012-08-25</expires> <reported_time>08-24 18:45:13</reported_time> </order> </sell_orders> <buy_orders> <order id="2406576519"> <region>10000038</region> <station>60002197</station> <station_name>Kuomi VIII - Moon 22 - Ishukone Corporation Factory</station_name> <security>0.567863363808865</security> <range>1</range> <price>4.75</price> <vol_remain>1745863</vol_remain> <min_volume>1</min_volume> <expires>2012-08-25</expires> <reported_time>08-24 18:45:13</reported_time> </order> </buy_orders> </quicklook> </evec_api> */ var connection = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=eve;Integrated Security=SSPI;"); connection.Open(); int[] typeIds = new EveInfo().GetListOfTypesToRefreshAll(); //int[] typeIds = { 34 }; int index = 0; foreach (var typeId in typeIds) { index++; UpdateInfoForType(connection, typeId); Console.WriteLine(" {0} of {1}", index, typeIds.Length); } Console.WriteLine("Done."); Console.ReadKey(); }
public ActionResult MarketRefresh() { var location = Request.Headers["EVE_SOLARSYSTEMNAME"]; if (location == null) { location = "Jita"; } var model = new EveInfo().GetListOfTypesToRefresh(location); return Json(model); }