コード例 #1
0
        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");
        }
コード例 #2
0
ファイル: Market.cs プロジェクト: wbSD/IndustryThing
        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
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 void ESIMarketOrdersImport()
 {
     ESIcorpMarketOrders = StaticInfo.ESIImportCrawl <ESI.CorporationMarketOrder>("corporations/{corporation_id}/orders/", ESI.CharacterEnum.EmpireDonkey);
     Console.WriteLine("....Done loading market orders");
 }
コード例 #5
0
 void ESIIndustryJobsImport()
 {
     ESIjobs = StaticInfo.ESIImportCrawl <ESI.IndustryJob>("corporations/{corporation_id}/industry/jobs/", ESI.CharacterEnum.BuildCorp);
     Console.WriteLine("....Done loading industry jobs");
 }
コード例 #6
0
ファイル: Extensions.cs プロジェクト: wbSD/IndustryThing
 internal static int GetJobs(this ESIResponse <List <IndustryJob> > response, int typeID, db.Db dataBase)
 {
     return(response.Result.GetJobs(typeID, dataBase));
 }
コード例 #7
0
ファイル: Extensions.cs プロジェクト: wbSD/IndustryThing
 internal static int FindOrder(this ESIResponse <List <CorporationMarketOrder> > response, int typeID)
 {
     return(response.Result.FindOrder(typeID));
 }
コード例 #8
0
ファイル: Extensions.cs プロジェクト: wbSD/IndustryThing
 internal static List <Asset> GetContainer(this ESIResponse <List <Asset> > assets, long containerID)
 {
     return(assets.Result.GetContainer(containerID));
 }
コード例 #9
0
ファイル: Extensions.cs プロジェクト: wbSD/IndustryThing
 public static decimal FindAdjustedPrice(this ESIResponse <List <MarketPrice> > response, int typeID)
 {
     return(response.Result.FindAdjustedPrice(typeID));
 }
コード例 #10
0
ファイル: Extensions.cs プロジェクト: wbSD/IndustryThing
 internal static decimal GetBuildCostIndex(this ESIResponse <List <CostIndice> > response, db.Db dataBase)
 {
     return(response.Result.GetBuildCostIndex(dataBase));
 }
コード例 #11
0
ファイル: Extensions.cs プロジェクト: wbSD/IndustryThing
 internal static long FindItem(this ESIResponse <List <Asset> > response, int typeID)
 {
     return(response.Result.FindItem(typeID));
 }
コード例 #12
0
ファイル: Extensions.cs プロジェクト: wbSD/IndustryThing
 internal static decimal SellOrderPrice(this ESIResponse <List <CorporationMarketOrder> > response, int typeID)
 {
     return(response.Result.SellOrderPrice(typeID));
 }