void ESIAssetImport() { ESIbuildCorpAssets = StaticInfo.ESIImportCrawl <ESI.Asset>("/corporations/{corporation_id}/assets/", ESI.CharacterEnum.BuildCorp); ESIempireDonkey = StaticInfo.ESIImportCrawl <ESI.Asset>("/characters/{character_id}/assets/", ESI.CharacterEnum.EmpireDonkey); Console.WriteLine("....Done loading assets"); }
public Market(db.Db dataBase) { ESIcostIndices = StaticInfo.ESIImportCrawl <ESI.CostIndice>("/industry/systems/", pageSize: 10000); Console.WriteLine("....Done getting cost indices"); ESImarketPrices = StaticInfo.ESIImportCrawl <ESI.MarketPrice>("/markets/prices/", pageSize: 20000); Console.WriteLine("....Done getting estimated prices"); this.dataBase = dataBase; region[0] = new Region(10000002); // the forge/jita //region[1] = new Region(10000060); // delve }
public ESIResponse <T> Execute <T>(RestRequest request) where T : new() { var client = new RestClient(ESIClient.ClientConfiguration.ApiUri); var response = client.Execute <T>(request); var esiResponse = new ESIResponse <T>() { IsSuccessful = response.IsSuccessful, StatusCode = (int)response.StatusCode, Data = response.IsSuccessful ? response.Data : default(T) }; return(esiResponse); }
void ESIMarketOrdersImport() { ESIcorpMarketOrders = StaticInfo.ESIImportCrawl <ESI.CorporationMarketOrder>("corporations/{corporation_id}/orders/", ESI.CharacterEnum.EmpireDonkey); Console.WriteLine("....Done loading market orders"); }
void ESIIndustryJobsImport() { ESIjobs = StaticInfo.ESIImportCrawl <ESI.IndustryJob>("corporations/{corporation_id}/industry/jobs/", ESI.CharacterEnum.BuildCorp); Console.WriteLine("....Done loading industry jobs"); }
internal static int GetJobs(this ESIResponse <List <IndustryJob> > response, int typeID, db.Db dataBase) { return(response.Result.GetJobs(typeID, dataBase)); }
internal static int FindOrder(this ESIResponse <List <CorporationMarketOrder> > response, int typeID) { return(response.Result.FindOrder(typeID)); }
internal static List <Asset> GetContainer(this ESIResponse <List <Asset> > assets, long containerID) { return(assets.Result.GetContainer(containerID)); }
public static decimal FindAdjustedPrice(this ESIResponse <List <MarketPrice> > response, int typeID) { return(response.Result.FindAdjustedPrice(typeID)); }
internal static decimal GetBuildCostIndex(this ESIResponse <List <CostIndice> > response, db.Db dataBase) { return(response.Result.GetBuildCostIndex(dataBase)); }
internal static long FindItem(this ESIResponse <List <Asset> > response, int typeID) { return(response.Result.FindItem(typeID)); }
internal static decimal SellOrderPrice(this ESIResponse <List <CorporationMarketOrder> > response, int typeID) { return(response.Result.SellOrderPrice(typeID)); }