Beispiel #1
0
        /// <summary>
        /// Get all invited attendees for a given event
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <param name="eventId">The id of the event requested</param>
        /// <returns>List of attendees</returns>
        public ESIResponse <List <GetEventAttendeesResponse> > GetEventAttendees(string authToken, int characterId, Int64 eventId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/calendar/{eventId}/attendees/",
                                                                       authToken);

            return(_client.Execute <List <GetEventAttendeesResponse> >(request));
        }
        /// <summary>
        /// Return a corporation’s member limit, not including CEO himself
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <returns>The corporation’s member limit</returns>
        public ESIResponse <int> GetCorporationMemberLimit(string authToken, int corporationId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/members/limit/",
                                                                       authToken);

            return(_client.Execute <int>(request));
        }
        /// <summary>
        /// Return a corporation’s facilities
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <returns>List of corporation facilities</returns>
        public ESIResponse <List <GetCorporationFacilitiesResponse> > GetCorpotaionFacilities(string authToken,
                                                                                              int corporationId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/facilities/",
                                                                       authToken);

            return(_client.Execute <List <GetCorporationFacilitiesResponse> >(request));
        }
        /// <summary>
        /// Paginated record of all mining done by a character for the past 30 days
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <param name="page">Which page of results to return</param>
        /// <returns>Mining ledger of a character</returns>
        public ESIResponse <List <GetCharacterMiningLedgerResponse> > GetCharacterMiningLedger(string authToken, int characterId, int page = 0)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/mining/", authToken);

            request.AddParameter("page", page, RestSharp.ParameterType.QueryString);

            return(_httpClient.Execute <List <GetCharacterMiningLedgerResponse> >(request));
        }
        /// <summary>
        /// Paginated record of all mining seen by an observer
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <param name="observerId">A mining observer id</param>
        /// <param name="page">Which page of results to return</param>
        /// <returns>Mining ledger of an observer</returns>
        public ESIResponse <List <GetCorporationObservedMiningResponse> > GetCorporationObservedMining(string authToken, int corporationId, int observerId, int page = 0)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporation/{corporationId}/mining/observers/{observerId}/", authToken);

            request.AddParameter("page", page, RestSharp.ParameterType.QueryString);

            return(_httpClient.Execute <List <GetCorporationObservedMiningResponse> >(request));
        }
        /// <summary>
        /// Return how roles have changed for a coporation’s members, up to a month
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <returns>List of role changes</returns>
        public ESIResponse <List <GetCorporationMemberRolesHistoryResponse> > GetCorporationMemberRolesHistory(string authToken,
                                                                                                               int corporationId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/roles/history/",
                                                                       authToken);

            return(_client.Execute <List <GetCorporationMemberRolesHistoryResponse> >(request));
        }
        /// <summary>
        /// Return corporation hangar and wallet division names, only show if a division is not using the default name
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <returns>List of corporation division names</returns>
        public ESIResponse <GetCorporationDivisionsResponse> GetCorporationDivisions(string authToken,
                                                                                     int corporationId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/divisions/",
                                                                       authToken);

            return(_client.Execute <GetCorporationDivisionsResponse>(request));
        }
        /// <summary>
        /// Returns additional information about a corporation’s members which helps tracking their activities
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <returns>List of member character IDs</returns>
        public ESIResponse <List <GetCorporationMemberTracking> > GetCorporationMemberTracking(string authToken,
                                                                                               int corporationId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/membertracking/",
                                                                       authToken);

            return(_client.Execute <List <GetCorporationMemberTracking> >(request));
        }
        /// <summary>
        /// Get details about a given outpost.
        /// <remarks>
        /// Note: This endpoint will be removed once outposts are migrated to Citadels as talked about in this blog:
        /// https://community.eveonline.com/news/dev-blogs/the-next-steps-in-structure-transition/
        /// </remarks>
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <param name="outpostId">A station (outpost) ID</param>
        /// <returns>Details about the given outpost</returns>
        public ESIResponse <GetCorporationOutpostDetailResponse> GetCorporationOutpostDetail(string authToken,
                                                                                             int corporationId, Int64 outpostId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/outposts/{outpostId}/",
                                                                       authToken);

            return(_client.Execute <GetCorporationOutpostDetailResponse>(request));
        }
        /// <summary>
        /// List cancelled and expired market orders placed on behalf of a corporation up to 90 days in the past.
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <param name="page">Which page of results to return</param>
        /// <returns>Expired and cancelled market orders placed on behalf of a corporation</returns>
        public ESIResponse <List <GetCorporationOrderHistoryResponse> > GetCorporationOrderHistory(string authToken, int corporationId, int page = 0)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/orders/history/", authToken);

            request.AddParameter("page", page, RestSharp.ParameterType.QueryString);

            return(_httpClient.Execute <List <GetCorporationOrderHistoryResponse> >(request));
        }
Beispiel #11
0
        /// <summary>
        /// Return the 50 most recent mail headers belonging to the character that match the query criteria.
        /// Queries can be filtered by label, and last_mail_id can be used to paginate backwards
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <param name="labels">Fetch only mails that match one or more of the given labels</param>
        /// <param name="lastMailId">List only mail with an ID lower than the given ID, if present</param>
        /// <returns>The requested mail</returns>
        public ESIResponse <List <GetMailHeadersResponse> > GetMailHeaders(string authToken, int characterId, List <Int64> labels, int?lastMailId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/mail/", authToken);

            request.AddParameter("labels", labels, RestSharp.ParameterType.QueryString);
            request.AddParameter("last_mail_id", lastMailId, RestSharp.ParameterType.QueryString);

            return(_httpClient.Execute <List <GetMailHeadersResponse> >(request));
        }
        /// <summary>
        /// Returns a list of blueprints the corporation owns
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <param name="page">Which page of results to return (Default is 0)</param>
        /// <returns>List of corporation blueprints</returns>
        public ESIResponse <List <GetCorporationBlueprintsResponse> > GetCorporationBlueprints(string authToken, int corporationId, int page = 0)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/blueprints/",
                                                                       authToken);

            request.AddParameter("page", page, ParameterType.QueryString);

            return(_client.Execute <List <GetCorporationBlueprintsResponse> >(request));
        }
Beispiel #13
0
        /// <summary>
        /// Get 50 event summaries from the calendar. If no from_event ID is given,
        /// the resource will return the next 50 chronological event summaries from now.
        /// If a from_event ID is specified, it will return the next 50 chronological event summaries from after that event.
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <param name="fromEvent">The event ID to retrieve events from</param>
        /// <returns>A collection of event summaries</returns>
        public ESIResponse <List <GetCharacterCalendarResponse> > GetCharacterCalendar(string authToken, int characterId, Int64?fromEvent)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/calendar/",
                                                                       authToken);

            request.AddParameter("fromEvent", fromEvent, ParameterType.QueryString);

            return(_client.Execute <List <GetCharacterCalendarResponse> >(request));
        }
        /// <summary>
        /// A list of your character’s personal bookmark folders
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <param name="page">Which page of results to return (Default is 0)</param>
        /// <returns></returns>
        public ESIResponse <List <GetPersonalBookmarkFoldersResponse> > GetPersonalBookmarkFolders(string authToken, int characterId, int page = 0)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/bookmarks/folders/",
                                                                       authToken);

            request.AddParameter("page", page, ParameterType.QueryString);

            return(_client.Execute <List <GetPersonalBookmarkFoldersResponse> >(request));
        }
Beispiel #15
0
        /// <summary>
        /// Get a list of corporation’s recent kills and losses
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE character ID</param>
        /// <param name="maxCount">How many killmails to return at maximum</param>
        /// <param name="maxKillmailId">Only return killmails with ID smaller than this</param>
        /// <returns>A list of killmail IDs and hashes</returns>
        public ESIResponse <List <GetCorporationKillmailsResponse> > GetCorporationKillmails(string authToken, int corporationId, int?maxCount, int?maxKillmailId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/killmails/recent/", authToken);

            request.AddParameter("max_count", maxCount, RestSharp.ParameterType.QueryString);
            request.AddParameter("max_kill_id", maxKillmailId, RestSharp.ParameterType.QueryString);

            return(_httpClient.Execute <List <GetCorporationKillmailsResponse> >(request));
        }
        /// <summary>
        /// Returns various settings and fuels of a starbase (POS)
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <param name="starbaseId">An EVE starbase (POS) ID</param>
        /// <param name="systemId">The solar system this starbase (POS) is located in</param>
        /// <returns>List of starbases</returns>
        public ESIResponse <GetCorporationStarbaseDetailResponse> GetCorporationStarbaseDetail(string authToken,
                                                                                               int corporationId, Int64 starbaseId, Int64 systemId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/starbases/{starbaseId}/",
                                                                       authToken);

            request.AddParameter("system_id ", systemId, ParameterType.QueryString);

            return(_client.Execute <GetCorporationStarbaseDetailResponse>(request));
        }
Beispiel #17
0
        /// <summary>
        /// Return names for a set of item ids, which you can get from corporation assets endpoint. Only valid for items that can customize names, like containers or ships.
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="corporationId">An EVE corporation ID</param>
        /// <param name="itemIds">A list of item ids</param>
        /// <returns>List of asset names</returns>
        public ESIResponse <List <GetCorporationAssetsNamesResponse> > GetCorporationAssetsNames(string authToken,
                                                                                                 int corporationId, Int64[] itemIds)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"corporations/{corporationId}/assets/names/",
                                                                       Method.POST, authToken);

            request.AddBody(itemIds);

            return(_client.Execute <List <GetCorporationAssetsNamesResponse> >(request));
        }
        /// <summary>
        /// Search for entities that match a given sub-string
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <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 authToken, int characterId, string search, string[] categories, string language, bool?strict)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/search/", authToken);

            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));
        }
Beispiel #19
0
        /// <summary>
        /// Return character standings from agents, NPC corporations, and factions
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <returns>A list of standings</returns>
        public ESIResponse <List <GetCharacterStandingsResponse> > GetCharacterStandings(string authToken, int characterId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/standings/", authToken);

            return(_client.Execute <List <GetCharacterStandingsResponse> >(request));
        }
Beispiel #20
0
        /// <summary>
        /// Return the contents of an EVE mail
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <param name="mailId">An EVE mail ID</param>
        /// <returns>Contents of a mail</returns>
        public ESIResponse <GetMailResponse> GetMail(string authToken, int characterId, int mailId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/mail/{mailId}/", authToken);

            return(_httpClient.Execute <GetMailResponse>(request));
        }
Beispiel #21
0
        /// <summary>
        /// Return a list of tasks finished by a character
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <returns>A list of opportunities task ids</returns>
        public ESIResponse <List <GetCharactersCompletedTasksResponse> > GetCharactersCompletedTasks(string authToken, int characterId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/opportunities/", authToken);

            return(_httpClient.Execute <List <GetCharactersCompletedTasksResponse> >(request));
        }
Beispiel #22
0
        /// <summary>
        /// Return all mailing lists that the character is subscribed to
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <returns>Mailing lists</returns>
        public ESIResponse <List <GetMailingListSubscriptionsResponse> > GetMailingListSubscriptions(string authToken, int characterId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/mail/labels/lists/", authToken);

            return(_httpClient.Execute <List <GetMailingListSubscriptionsResponse> >(request));
        }
Beispiel #23
0
        /// <summary>
        /// Return a character’s jump activation and fatigue information
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <returns>Jump activation and fatigue information</returns>
        public ESIResponse <GetFatigueResponse> GetFatigue(string authToken, int characterId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/fatigue/", authToken);

            return(_client.Execute <GetFatigueResponse>(request));
        }
Beispiel #24
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="authToken"></param>
        /// <param name="characterId"></param>
        /// <param name="page">Which page of results to return (Default is 0)</param>
        /// <returns></returns>
        public ESIResponse <List <GetCharacterContactsResponse> > GetCharacterContacts(string authToken, int characterId, int page = 0)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/contacts/", authToken);

            return(_client.Execute <List <GetCharacterContactsResponse> >(request));
        }
Beispiel #25
0
        /// <summary>
        /// Return a list of the users mail labels, unread counts for each label and a total unread count
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <returns>A list of mail labels and unread counts</returns>
        public ESIResponse <GetMailsAndUnreadCountsResponse> GetMailsAndUnreadCounts(string authToken, int characterId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/mail/labels/", authToken);

            return(_httpClient.Execute <GetMailsAndUnreadCountsResponse>(request));
        }
Beispiel #26
0
        /// <summary>
        /// Return contacts of an alliance
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="allianceId">An EVE alliance ID</param>
        /// <param name="page">Which page of results to return (Default is 0)</param>
        /// <returns>A list of contacts</returns>
        public ESIResponse <List <GetAllianceContactsResponse> > GetAllianceContacts(string authToken, Int64 allianceId, int page = 0)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"alliances/{allianceId}/contacts/", authToken);

            return(_client.Execute <List <GetAllianceContactsResponse> >(request));
        }
Beispiel #27
0
        /// <summary>
        /// Return information about fleet members
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="fleetId">ID for a fleet</param>
        /// <returns>A list of fleet members</returns>
        public ESIResponse <List <GetFleetMembersResponse> > GetFleetMembers(string authToken, Int64 fleetId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"fleets/{fleetId}/members/", authToken);

            return(_httpClient.Execute <List <GetFleetMembersResponse> >(request));
        }
Beispiel #28
0
        /// <summary>
        /// Return details about a fleet
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="fleetId">ID for a fleet</param>
        /// <returns>Details about a fleet</returns>
        public ESIResponse <GetFleetInformationResponse> GetFleetInformation(string authToken, Int64 fleetId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"fleets/{fleetId}/", authToken);

            return(_httpClient.Execute <GetFleetInformationResponse>(request));
        }
Beispiel #29
0
        /// <summary>
        /// Return the fleet ID the character is in, if any.
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <returns>Details about the character’s fleet</returns>
        public ESIResponse <GetCharacterFleetInfoResponse> GetCharacterFleetInfo(string authToken, int characterId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/fleet/", authToken);

            return(_httpClient.Execute <GetCharacterFleetInfoResponse>(request));
        }
Beispiel #30
0
        /// <summary>
        /// Return a list of agents research information for a character.
        /// The formula for finding the current research points with an agent is: c
        /// urrentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate)
        /// </summary>
        /// <param name="authToken">Access token to use</param>
        /// <param name="characterId">An EVE character ID</param>
        /// <returns>A list of agents research information</returns>
        public ESIResponse <List <GetAgentResearchResponse> > GetAgentResearch(string authToken, int characterId)
        {
            var request = RestRequestHelper.CreateAuthorizedGetRequest($"characters/{characterId}/agents_research/", authToken);

            return(_client.Execute <List <GetAgentResearchResponse> >(request));
        }