/// <summary>
        /// Get the icon urls for a corporation
        /// </summary>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <returns>Urls for icons for the given corporation id and server</returns>
        public ESIResponse <GetCorporationIconResponse> GetCorporationIcon(int corporationId)
        {
            var request = RestRequestHelper.CreateGetRequest($"corporations/{corporationId}/icons/",
                                                             Method.GET);

            return(_client.Execute <GetCorporationIconResponse>(request));
        }
Exemple #2
0
        /// <summary>
        /// List all active player alliances
        /// </summary>
        /// <returns>List of Alliance IDs</returns>
        public ESIResponse <List <Int64> > Alliances()
        {
            var request  = RestRequestHelper.CreateGetRequest("alliances/", Method.GET);
            var response = _client.Execute <List <Int64> >(request);

            return(response);
        }
        /// <summary>
        /// Return a list of historical market statistics for the specified type in a region
        /// </summary>
        /// <param name="regionId">Return statistics in this region</param>
        /// <param name="typeId">Return statistics for this type</param>
        /// <returns>A list of historical market statistics</returns>
        public ESIResponse <List <GetRegionMarketStatisticsResponse> > GetRegionMarketStatistics(int regionId, int typeId)
        {
            var request = RestRequestHelper.CreateGetRequest($"markets/{regionId}/history/");

            request.AddParameter("type_id", typeId, RestSharp.ParameterType.QueryString);

            return(_httpClient.Execute <List <GetRegionMarketStatisticsResponse> >(request));
        }
        /// <summary>
        /// Resolve a set of corporation IDs to corporation names
        /// </summary>
        /// <param name="corporationIds">corporation IDs to resolve</param>
        /// <returns>List of id/name associations</returns>
        public ESIResponse <List <GetCorporationNamesResponse> > GetCorporationNames(Int64[] corporationIds)
        {
            var request = RestRequestHelper.CreateGetRequest($"corporations/names/", Method.GET);

            request.AddParameter("corporation_ids", string.Join(",", corporationIds), ParameterType.QueryString);

            return(_client.Execute <List <GetCorporationNamesResponse> >(request));
        }
Exemple #5
0
        /// <summary>
        /// Get the icon urls for a alliance
        /// </summary>
        /// <param name="allianceId">An EVE alliance ID</param>
        /// <returns>Icon URLs for the given alliance id and server</returns>
        public ESIResponse <GetAllianceIconsResponse> GetAllianceIcons(Int64 allianceId)
        {
            var request = RestRequestHelper.CreateGetRequest($"alliances/{allianceId}/icons/", Method.GET);

            var response = _client.Execute <GetAllianceIconsResponse>(request);

            return(response);
        }
Exemple #6
0
        /// <summary>
        /// List all current member corporations of an alliance
        /// </summary>
        /// <param name="allianceId">An EVE alliance ID</param>
        /// <returns>List of corporation IDs</returns>
        public ESIResponse <List <Int64> > GetAllianceCorporations(Int64 allianceId)
        {
            var request = RestRequestHelper.CreateGetRequest($"alliances/{allianceId}/corporations/", Method.GET);

            var response = _client.Execute <List <Int64> >(request);

            return(response);
        }
Exemple #7
0
        /// <summary>
        /// Resolve a set of character IDs to character names
        /// </summary>
        /// <param name="characterIds">list of character IDs</param>
        /// <returns>List of id/name associations</returns>
        public ESIResponse <List <GetCharacterNamesResponse> > GetCharacterNames(Int64[] characterIds)
        {
            var request = RestRequestHelper.CreateGetRequest($"characters/names/");

            request.AddQueryParameter("character_ids", string.Join(",", characterIds));

            return(_client.Execute <List <GetCharacterNamesResponse> >(request));
        }
Exemple #8
0
        /// <summary>
        /// Get the systems between origin and destination
        /// </summary>
        /// <param name="origin">origin solar system ID</param>
        /// <param name="destination">destination solar system ID</param>
        /// <param name="flag">route security preference</param>
        /// <param name="avoid">avoid solar system ID(s)</param>
        /// <param name="connections">connected solar system pairs</param>
        /// <returns>Solar systems in route from origin to destination</returns>
        public ESIResponse <List <int> > GetRoute(int origin, int destination, string flag, int[][] avoid, int[] connections)
        {
            var request = RestRequestHelper.CreateGetRequest($"route/{origin}/{destination}/");

            request.AddParameter("avoid", avoid, RestSharp.ParameterType.QueryString);
            request.AddParameter("connections", connections, RestSharp.ParameterType.QueryString);
            request.AddParameter("flag", flag, RestSharp.ParameterType.QueryString);

            return(_httpClient.Execute <List <int> >(request));
        }
Exemple #9
0
        /// <summary>
        /// Resolve a set of alliance IDs to alliance names
        /// </summary>
        /// <param name="allianceIds">A comma separated list of alliance IDs. Note: Comma seperation is done by the client.</param>
        /// <returns>List of id/name associations</returns>
        public ESIResponse <GetAllianceNamesResponse> GetAllianceNames(Int64[] allianceIds)
        {
            var request = RestRequestHelper.CreateGetRequest("alliances/names/", Method.GET);

            request.AddParameter("alliance_ids", string.Join(",", allianceIds));

            var response = _client.Execute <GetAllianceNamesResponse>(request);

            return(response);
        }
        /// <summary>
        /// Return a list of orders in a region
        /// </summary>
        /// <param name="regionId">Return orders in this region</param>
        /// <param name="orderType">Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders</param>
        /// <param name="typeId">Return orders only for this type</param>
        /// <param name="page">Which page of results to return</param>
        /// <returns>A list of orders</returns>
        public ESIResponse <List <GetOrdersInRegionResponse> > GetOrdersInRegion(int regionId, string orderType, int?typeId, int?page)
        {
            var request = RestRequestHelper.CreateGetRequest($"markets/{regionId}/orders/");

            request.AddParameter("type_id", typeId, RestSharp.ParameterType.QueryString);
            request.AddParameter("order_type", orderType, RestSharp.ParameterType.QueryString);
            request.AddParameter("page", page, RestSharp.ParameterType.QueryString);

            return(_httpClient.Execute <List <GetOrdersInRegionResponse> >(request));
        }
        /// <summary>
        /// Search for entities that match a given sub-string
        /// </summary>
        /// <param name="categories">Type of entities to search for</param>
        /// <param name="language">Language to use in the response</param>
        /// <param name="search">The string to search on</param>
        /// <param name="strict">Whether the search should be a strict match</param>
        /// <returns>A list of search results</returns>
        public ESIResponse <SearchResponse> Search(string search, string[] categories, string language, bool?strict)
        {
            var request = RestRequestHelper.CreateGetRequest($"search/");

            request.AddParameter("search", search, RestSharp.ParameterType.QueryString);
            request.AddParameter("categories", categories, RestSharp.ParameterType.QueryString);
            request.AddParameter("language", language, RestSharp.ParameterType.QueryString);
            request.AddParameter("strict", strict, RestSharp.ParameterType.QueryString);

            return(_httpClient.Execute <SearchResponse>(request));
        }
Exemple #12
0
        /// <summary>
        /// Public information about a character
        /// </summary>
        /// <param name="characterId">An EVE character ID</param>
        /// <returns>Public data for the given character</returns>
        public ESIResponse <GetCharacterResponse> GetCharacter(int characterId)
        {
            var request = RestRequestHelper.CreateGetRequest($"characters/{characterId}/");

            return(_client.Execute <GetCharacterResponse>(request));
        }
Exemple #13
0
        /// <summary>
        /// An overview of the current ownership of faction warfare solar systems
        /// </summary>
        /// <returns>All faction war solar systems</returns>
        public ESIResponse <List <GetFactionWarfareSystemOwnershipsResponse> > GetFactionWarfareSystemOwnerships()
        {
            var request = RestRequestHelper.CreateGetRequest($"fw/systems/", Method.GET);

            return(_client.Execute <List <GetFactionWarfareSystemOwnershipsResponse> >(request));
        }
Exemple #14
0
        /// <summary>
        /// Statistical overviews of factions involved in faction warfare
        /// </summary>
        /// <returns>Per faction breakdown of faction warfare statistics</returns>
        public ESIResponse <GetFactionWarfareStatsResponse> GetFactionWarfareStats()
        {
            var request = RestRequestHelper.CreateGetRequest($"fw/stats/", Method.GET);

            return(_client.Execute <GetFactionWarfareStatsResponse>(request));
        }
        /// <summary>
        /// Get information on an item group
        /// </summary>
        /// <param name="itemGroup">An Eve item group ID</param>
        /// <returns>Information about an item group</returns>
        public ESIResponse <GetItemGroupInformationResponse> GetItemGroupInformation(int itemGroup)
        {
            var request = RestRequestHelper.CreateGetRequest($"markets/groups/{itemGroup}/");

            return(_httpClient.Execute <GetItemGroupInformationResponse>(request));
        }
        /// <summary>
        /// Get a list of all the alliances a corporation has been a member of
        /// </summary>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <returns>Alliance history for the given corporation</returns>
        public ESIResponse <List <GetCorporationAllianceHistoryResponse> > GetCorporationAllianceHistory(int corporationId)
        {
            var request = RestRequestHelper.CreateGetRequest($"corporations/{corporationId}/alliancehistory/", Method.GET);

            return(_client.Execute <List <GetCorporationAllianceHistoryResponse> >(request));
        }
        /// <summary>
        /// Get information on a dogma effect
        /// </summary>
        /// <param name="effectId">A dogma effect ID</param>
        /// <returns>Information about a dogma effect</returns>
        public ESIResponse <GetDogmaEffectInformationResponse> GetDogmaEffectInformation(Int64 effectId)
        {
            var request = RestRequestHelper.CreateGetRequest($"dogma/effects/{effectId}/", Method.GET);

            return(_client.Execute <GetDogmaEffectInformationResponse>(request));
        }
        /// <summary>
        /// Get a list of dogma effect ids
        /// </summary>
        /// <returns>A list of dogma effect ids</returns>
        public ESIResponse <List <Int64> > GetDogmaEffects()
        {
            var request = RestRequestHelper.CreateGetRequest("dogma/effects/", Method.GET);

            return(_client.Execute <List <Int64> >(request));
        }
        /// <summary>
        /// Get information on a dogma attribute
        /// </summary>
        /// <param name="attributeId">A dogma attribute ID</param>
        /// <returns>Information about a dogma attribute</returns>
        public ESIResponse <GetDogmaAttributeInformationResponse> GetDogmaAttbiuteInformation(Int64 attributeId)
        {
            var request = RestRequestHelper.CreateGetRequest($"dogma/attributes/{attributeId}/", Method.GET);

            return(_client.Execute <GetDogmaAttributeInformationResponse>(request));
        }
Exemple #20
0
        /// <summary>
        /// Get a list of all the corporations a character has been a member of
        /// </summary>
        /// <param name="characterId">An EVE character ID</param>
        /// <returns>Corporation history for the given character</returns>
        public ESIResponse <List <GetCorporationHistoryResponse> > GetCorporationHistory(int characterId)
        {
            var request = RestRequestHelper.CreateGetRequest($"characters/{characterId}/corporationhistory/");

            return(_client.Execute <List <GetCorporationHistoryResponse> >(request));
        }
        /// <summary>
        /// Return a list of prices
        /// </summary>
        /// <returns>A list of prices</returns>
        public ESIResponse <List <GetMarketPricesResponse> > GetMarketPrices()
        {
            var request = RestRequestHelper.CreateGetRequest($"markets/prices/");

            return(_httpClient.Execute <List <GetMarketPricesResponse> >(request));
        }
Exemple #22
0
        /// <summary>
        /// Return a list of opportunities tasks
        /// </summary>
        /// <returns>A list of opportunities task ids</returns>
        public ESIResponse <List <int> > GetOpportunitiesTasks()
        {
            var request = RestRequestHelper.CreateGetRequest("opportunities/tasks/");

            return(_httpClient.Execute <List <int> >(request));
        }
        /// <summary>
        /// Get a list of npc corporations
        /// </summary>
        /// <returns>A list of npc corporation ids</returns>
        public ESIResponse <List <Int64> > GetNpcCorporations()
        {
            var request = RestRequestHelper.CreateGetRequest($"corporations/npccorps/", Method.GET);

            return(_client.Execute <List <Int64> >(request));
        }
        /// <summary>
        /// Return a list of current incursions
        /// </summary>
        /// <returns>A list of incursions</returns>
        public ESIResponse <List <ListIncursionsResponse> > ListIncursions()
        {
            var request = RestRequestHelper.CreateGetRequest("incursions/");

            return(_httpClient.Execute <List <ListIncursionsResponse> >(request));
        }
Exemple #25
0
        /// <summary>
        /// Return information of an opportunities group
        /// </summary>
        /// <param name="opportunityGroupId">ID of an opportunities group</param>
        /// <returns>Details of an opportunities group</returns>
        public ESIResponse <GetOpportunitiesGroupResponse> GetOpportunitiesGroup(int opportunityGroupId)
        {
            var request = RestRequestHelper.CreateGetRequest($"opportunities/groups/{opportunityGroupId}/");

            return(_httpClient.Execute <GetOpportunitiesGroupResponse>(request));
        }
Exemple #26
0
        /// <summary>
        /// Data about which NPC factions are at war
        /// </summary>
        /// <returns>A list of NPC factions at war</returns>
        public ESIResponse <List <GetFactionWarfareWarsResponse> > GetFactionWarfareWars()
        {
            var request = RestRequestHelper.CreateGetRequest($"fw/wars/", Method.GET);

            return(_client.Execute <List <GetFactionWarfareWarsResponse> >(request));
        }
Exemple #27
0
        /// <summary>
        /// Return information of an opportunities task
        /// </summary>
        /// <param name="taskId">ID of an opportunities task</param>
        /// <returns>Details of an opportunities task</returns>
        public ESIResponse <GetOpportunitiesTaskResponse> GetOpportunitiesTask(int taskId)
        {
            var request = RestRequestHelper.CreateGetRequest($"opportunities/tasks/{taskId}/");

            return(_httpClient.Execute <GetOpportunitiesTaskResponse>(request));
        }
Exemple #28
0
        /// <summary>
        /// Top 10 leaderboard of corporations for kills and victory points separated by total, last week and yesterday.
        /// </summary>
        /// <returns>Corporation leaderboard of kills and victory points within faction warfare.</returns>
        public ESIResponse <GetCorporationLeaderboardsResponse> GetCorporationLeaderboards()
        {
            var request = RestRequestHelper.CreateGetRequest($"fw/leaderboards/corporations/", Method.GET);

            return(_client.Execute <GetCorporationLeaderboardsResponse>(request));
        }
        /// <summary>
        /// Return available insurance levels for all ship types
        /// </summary>
        /// <returns>A list of insurance levels for all ship types</returns>
        public ESIResponse <List <GetInsuranceLevelsResponse> > GetInsuranceLevels()
        {
            var request = RestRequestHelper.CreateGetRequest($"insurance/prices/");

            return(_httpClient.Execute <List <GetInsuranceLevelsResponse> >(request));
        }
        /// <summary>
        /// Get a list of item groups
        /// </summary>
        /// <returns>A list of item group ids</returns>
        public ESIResponse <List <int> > GetItemGroups()
        {
            var request = RestRequestHelper.CreateGetRequest($"markets/groups/");

            return(_httpClient.Execute <List <int> >(request));
        }