Пример #1
0
        private static ProductType GetProductType(int shipTypeId)
        {
            EveApi      API;
            APIKeyInfo  KeyInfo;
            ProductType PType;

            try
            {
                API     = new EveApi("Clyde en Marland's API Checker", Properties.Settings.Default.CorpAPI, Properties.Settings.Default.VCode);
                KeyInfo = API.GetApiKeyInfo();

                PType = EveApi.EveApiCore.FindProductType(shipTypeId);
            }
            catch (Exception Ex)
            {
                PType             = new ProductType();
                PType.Name        = "Error querying API server";
                PType.Description = Ex.Message;
            }

            if (PType == null)
            {
                PType      = new ProductType();
                PType.Name = LookupShipName(shipTypeId);
            }

            return(PType);
        }
Пример #2
0
        private ProductType GetProductType(int shipTypeId)
        {
            long   KeyID = 4086267;
            string VCode = "HUkqOyewFYvuSkWgDoCOH1L2juXnaxh3gCLDT1qwAfrpYt381CkT6XeZ8qe2rpH0";

            KeyID = 3704919;
            VCode = "JXcmbP0t9NCR6rld6qxOvbDFomx076ZERIs84p5XoBn0IYzVJJX1Jj6bIEYhBKlk";

            EveApi     API;
            APIKeyInfo KeyInfo;
            List <AccountCharacter> Characters;
            List <CorporationMemberTrackingEntry> CorpMembers;
            ProductType PType;

            try
            {
                API     = new EveApi("Clyde en Marland's API Checker", KeyID, VCode);
                KeyInfo = API.GetApiKeyInfo();

                PType = EveApi.EveApiCore.FindProductType(shipTypeId);
            }
            catch (Exception Ex)
            {
                PType             = new ProductType();
                PType.Name        = "Error querying API server";
                PType.Description = Ex.Message;
            }

            return(PType);
        }
Пример #3
0
        private static EveAI.Map.SolarSystem GetSolarSystem(int systemId)
        {
            EveApi     API;
            APIKeyInfo KeyInfo;

            EveAI.Map.SolarSystem system;

            try
            {
                API     = new EveApi("Clyde en Marland's API Checker", Properties.Settings.Default.CorpAPI, Properties.Settings.Default.VCode);
                KeyInfo = API.GetApiKeyInfo();

                system = EveApi.EveApiCore.FindSolarSystem(systemId);
            }
            catch (Exception Ex)
            {
                system      = new EveAI.Map.SolarSystem();
                system.Name = string.Concat("Error querying API server; ", Ex.Message);
            }

            return(system);
        }
        private static EveAI.Map.SolarSystem GetSolarSystem(int systemId)
        {
            EveApi API;
            APIKeyInfo KeyInfo;
            EveAI.Map.SolarSystem system;

            try
            {
                API = new EveApi("Clyde en Marland's API Checker", Properties.Settings.Default.CorpAPI, Properties.Settings.Default.VCode);
                KeyInfo = API.GetApiKeyInfo();

                system = EveApi.EveApiCore.FindSolarSystem(systemId);
            }
            catch (Exception Ex)
            {
                system = new EveAI.Map.SolarSystem();
                system.Name = string.Concat("Error querying API server; ", Ex.Message);
            }

            return system;
        }
        private static ProductType GetProductType(int shipTypeId)
        {
            EveApi API;
            APIKeyInfo KeyInfo;
            ProductType PType;

            try
            {
                API = new EveApi("Clyde en Marland's API Checker", Properties.Settings.Default.CorpAPI, Properties.Settings.Default.VCode);
                KeyInfo = API.GetApiKeyInfo();

                PType = EveApi.EveApiCore.FindProductType(shipTypeId);
            }
            catch (Exception Ex)
            {
                PType = new ProductType();
                PType.Name = "Error querying API server";
                PType.Description = Ex.Message;
            }

            if (PType == null)
            {
                PType = new ProductType();
                PType.Name = LookupShipName(shipTypeId);
            }

            return PType;
        }
Пример #6
0
        private ProductType GetProductType(int shipTypeId)
        {
            long KeyID = 4086267;
            string VCode = "HUkqOyewFYvuSkWgDoCOH1L2juXnaxh3gCLDT1qwAfrpYt381CkT6XeZ8qe2rpH0";

            KeyID = 3704919;
            VCode = "JXcmbP0t9NCR6rld6qxOvbDFomx076ZERIs84p5XoBn0IYzVJJX1Jj6bIEYhBKlk";

            EveApi API;
            APIKeyInfo KeyInfo;
            List<AccountCharacter> Characters;
            List<CorporationMemberTrackingEntry> CorpMembers;
            ProductType PType;

            try
            {
                API = new EveApi("Clyde en Marland's API Checker", KeyID, VCode);
                KeyInfo = API.GetApiKeyInfo();

                PType = EveApi.EveApiCore.FindProductType(shipTypeId);
            }
            catch (Exception Ex)
            {
                PType = new ProductType();
                PType.Name = "Error querying API server";
                PType.Description = Ex.Message;
            }

            return PType;
        }