public async Task <Endereco> GetEnderecoAsync(CEP cep) { var json = await GetViaCEPClient().GetEnderecoAsync(cep, OutputType.Json); return(TryConvertToEndereco( JsonConvert.DeserializeObject <Endereco>(json) as Endereco)); }
public Endereco GetEndereco(CEP cep) { var json = GetViaCEPClient().GetEndereco(cep, OutputType.Json); return(TryConvertToEndereco( JsonConvert.DeserializeObject <Endereco>(json) as Endereco)); }
public Endereco GetEndereco(CEP cep) { var json = GetViaCEPClient().GetEndereco(cep, OutputType.Json); var endereco = JsonConvert.DeserializeObject <Endereco>(json) as Endereco; return(TryConvertToEndereco(endereco.CEP, endereco.Logradouro, endereco.Complemento , endereco.Bairro, endereco.Localidade, endereco.UF , endereco.Unidade, endereco.IBGE, endereco.GIA)); }
public string GetEnderecoQuerty(CEP cep) { return(GetViaCEPClient().GetEndereco(cep, OutputType.Querty)); }
public async Task <string> GetEnderecoQuertyAsync(CEP cep) { return(await GetViaCEPClient().GetEnderecoAsync(cep, OutputType.Querty)); }
public string GetEnderecoPiped(CEP cep) { return(GetViaCEPClient().GetEndereco(cep, OutputType.Piped)); }
public async Task <string> GetEnderecoPipedAsync(CEP cep) { return(await GetViaCEPClient().GetEnderecoAsync(cep, OutputType.Piped)); }
public string GetEnderecoJson(CEP cep) { return(GetViaCEPClient().GetEndereco(cep, OutputType.Json)); }
public string GetEnderecoXml(CEP cep) { return(GetViaCEPClient().GetEndereco(cep, OutputType.Xml)); }