public async Task <PagedModel <V2ContactCharacter> > CharacterAsync(SsoToken token, int page) { StaticMethods.CheckToken(token, CharacterScopes.esi_characters_read_contacts_v1); string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.ContactsV2Character(token.CharacterId, page), _testing); EsiModel esiRaw = await PollyPolicies.WebExceptionRetryWithFallbackAsync.ExecuteAsync(async() => await _webClient.GetAsync(StaticMethods.CreateHeaders(token), url, 300)); IList <EsiV2ContactCharacter> esiModel = JsonConvert.DeserializeObject <IList <EsiV2ContactCharacter> >(esiRaw.Model); IList <V2ContactCharacter> mapped = _mapper.Map <IList <EsiV2ContactCharacter>, IList <V2ContactCharacter> >(esiModel); return(new PagedModel <V2ContactCharacter> { Model = mapped, MaxPages = esiRaw.MaxPages, CurrentPage = page }); }