public async Task <IList <V1ContactAllianceLabel> > AllianceLabelsAsync(SsoToken token, int allianceId) { StaticMethods.CheckToken(token, AllianceScopes.esi_alliances_read_contacts_v1); string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.ContactsV1AllianceLabels(allianceId), _testing); EsiModel esiRaw = await PollyPolicies.WebExceptionRetryWithFallbackAsync.ExecuteAsync(async() => await _webClient.GetAsync(StaticMethods.CreateHeaders(token), url, 300)); IList <EsiV1ContactAllianceLabel> esiModel = JsonConvert.DeserializeObject <IList <EsiV1ContactAllianceLabel> >(esiRaw.Model); return(_mapper.Map <IList <EsiV1ContactAllianceLabel>, IList <V1ContactAllianceLabel> >(esiModel)); }