private async Task resolveContents(ContractCall call) { NukeESI.ESIClass esi = new ESIClass(); List <ContractContents> contents = await esi.pullContract(call.contract_id).ConfigureAwait(false); this.contents = contents; }
private async Task resolveStructure(ContractCall call) { NukeESI.ESIClass esi = new ESIClass(); ESIStructure stat = await esi.pullStructure(call.start_location_id).ConfigureAwait(false); station = stat; }
private async Task resolveTypes(List <ContractContents> items) { ESIClass esi = new ESIClass(); await Task.Run(() => { foreach (ContractContents item in items) { TypeCall info = esi.pullTypeInfo(item.type_id); typeInfo.Add(info); } }); }
public void Pull() { NukeESI.ESIClass esi = new ESIClass(); List <ContractCall> call = esi.GetContracts($"{region}"); for (int i = 0; i < call.Count; i++) { Contract hold = new Contract(call.ElementAt(i), i); hold.buildContract(); Contracts[region - 10000000].Add(hold); } filteredContracts = (Contracts[region - 10000000]); }