-
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 #24 from guibranco/develop
Develop
- Loading branch information
Showing
13 changed files
with
665 additions
and
205 deletions.
There are no files selected for viewing
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,48 @@ | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace ViaCep | ||
{ | ||
/// <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 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 state initials. | ||
/// </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 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 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
Oops, something went wrong.