Example #1
0
        public void Kick(SsoToken token, long fleetId, int characterId)
        {
            StaticMethods.CheckToken(token, FleetScopes.esi_fleets_write_fleet_v1);

            string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.FleetsV1MemberKick(fleetId, characterId), _testing);

            PollyPolicies.WebExceptionRetryWithFallback.Execute(() => _webClient.Delete(StaticMethods.CreateHeaders(token), url, string.Empty));
        }
Example #2
0
        public void Delete(SsoToken token, int mailId)
        {
            StaticMethods.CheckToken(token, MailScopes.esi_mail_organize_mail_v1);

            string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.MailV1Delete(token.CharacterId, mailId), _testing);

            PollyPolicies.WebExceptionRetryWithFallback.Execute(() => _webClient.Delete(StaticMethods.CreateHeaders(token), url, string.Empty));
        }
Example #3
0
        public void CharacterDelete(SsoToken token, int fittingId)
        {
            StaticMethods.CheckToken(token, FittingScopes.esi_fittings_write_fittings_v1);

            string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.FittingsV1CharacterDelete(token.CharacterId, fittingId), _testing);

            PollyPolicies.WebExceptionRetryWithFallback.Execute(() => _webClient.Delete(StaticMethods.CreateHeaders(token), url, string.Empty));
        }
        public void CharacterDelete(SsoToken token, IList <int> contactIds)
        {
            StaticMethods.CheckToken(token, CharacterScopes.esi_characters_write_contacts_v1);

            string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.ContactsV2CharacterDelete(token.CharacterId), _testing);

            string jsonObject = JsonConvert.SerializeObject(contactIds);

            PollyPolicies.WebExceptionRetryWithFallback.Execute(() => _webClient.Delete(StaticMethods.CreateHeaders(token), url, jsonObject));
        }