-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from guibranco/feature/updates
Feature/updates
- Loading branch information
Showing
18 changed files
with
561 additions
and
317 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
namespace ViaCep | ||
{ | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// The ViaCEP client interface. | ||
/// </summary> | ||
public interface IViaCepClient | ||
{ | ||
/// <summary> | ||
/// Searches the specified zip code. | ||
/// </summary> | ||
/// <param name="zipCode">The zip code.</param> | ||
/// <returns></returns> | ||
ViaCepResult Search(string zipCode); | ||
|
||
/// <summary> | ||
/// Searches the specified address by state initials (UF), city and address name. | ||
/// </summary> | ||
/// <param name="stateInitials">The state initials.</param> | ||
/// <param name="city">The city.</param> | ||
/// <param name="address">The address.</param> | ||
/// <returns></returns> | ||
IEnumerable<ViaCepResult> Search(string stateInitials, string city, string address); | ||
|
||
/// <summary> | ||
/// Searches the specified zip code asynchronous. | ||
/// </summary> | ||
/// <param name="zipCode">The zip code.</param> | ||
/// <param name="cancellationToken">The cancellation token.</param> | ||
/// <returns></returns> | ||
Task<ViaCepResult> SearchAsync(string zipCode, CancellationToken cancellationToken); | ||
|
||
/// <summary> | ||
/// Searches the specified address by state initials (UF), city and address name asynchronous. | ||
/// </summary> | ||
/// <param name="stateInitials">The state initials.</param> | ||
/// <param name="city">The city.</param> | ||
/// <param name="address">The address.</param> | ||
/// <param name="cancellationToken">The cancellation token.</param> | ||
/// <returns></returns> | ||
Task<IEnumerable<ViaCepResult>> SearchAsync(string stateInitials, string city, string address, CancellationToken cancellationToken); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<ProjectGuid>A251D320-410E-48F1-889D-9F59EB8CFEB9</ProjectGuid> | ||
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Authors>Guilherme Branco Stracini</Authors> | ||
<Copyright>© 2020 Guilherme Branco Stracini. All rights reserved.</Copyright> | ||
<Description>The ViaCEP WebService client for .NET projects (both .NET Core and .NET Framework)</Description> | ||
<PackageProjectUrl>https://guibranco.github.io/ViaCEP/</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/guibranco/ViaCEP/</RepositoryUrl> | ||
<RepositoryType>GIT</RepositoryType> | ||
<PackageTags>cep zipcode postalcode postal zip address location api webservice brasil brazil correios ibge gia mf fazenda</PackageTags> | ||
<PackageIconUrl>https://raw.githubusercontent.com/guibranco/ViaCEP/master/logo.png?v=1</PackageIconUrl> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<Version>1.0.0</Version> | ||
<AssemblyVersion>1.0.0.0</AssemblyVersion> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.9" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="../../LICENSE" Pack="true" PackagePath="\" /> | ||
<None Include="../../logo.png" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<ProjectGuid>A251D320-410E-48F1-889D-9F59EB8CFEB9</ProjectGuid> | ||
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Authors>Guilherme Branco Stracini</Authors> | ||
<Copyright>© 2020 Guilherme Branco Stracini. All rights reserved.</Copyright> | ||
<Description>The ViaCep API/WebService client for .NET projects (both .NET Core and .NET Framework)</Description> | ||
<PackageProjectUrl>https://guibranco.github.io/ViaCEP/</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/guibranco/ViaCEP/</RepositoryUrl> | ||
<RepositoryType>GIT</RepositoryType> | ||
<PackageTags>cep zipcode postalcode postal zip address location api webservice brasil brazil correios ibge gia mf fazenda</PackageTags> | ||
<PackageIconUrl>https://raw.githubusercontent.com/guibranco/ViaCEP/master/logo.png?v=1</PackageIconUrl> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<Version>1.0.0</Version> | ||
<AssemblyVersion>1.0.0.0</AssemblyVersion> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.9" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="../../LICENSE" Pack="true" PackagePath="\" /> | ||
<None Include="../../logo.png" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.