Skip to content

Instantly share code, notes, and snippets.

@rafaelrmou
Created June 2, 2017 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelrmou/8a5cf160e5d4a0a50c0de6b1b8f83a02 to your computer and use it in GitHub Desktop.
Save rafaelrmou/8a5cf160e5d4a0a50c0de6b1b8f83a02 to your computer and use it in GitHub Desktop.
public interface IHttpServices
{
Task<IEnumerable<T>> Get<T>(string method, Dictionary<string, object> parameters = null);
Task<T> GetCustom<T>(string url, Dictionary<string, object> parameters = null);
Task<T> Get<T>(string method, string id, Dictionary<string, object> parameters = null);
Task<ListaPages<T>> GetPagina<T>(string method, Dictionary<string, string> parameters = null, int retry = 0);
Task<R> Post<T, R>(string method, T postObject, Dictionary<string, object> parameters = null);
Task<T> Delete<T>(string method, string id);
Task<T> Put<T>(string method, string id, T putObject, Dictionary<string, object> parameters = null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment