Created
June 2, 2017 20:45
-
-
Save rafaelrmou/8a5cf160e5d4a0a50c0de6b1b8f83a02 to your computer and use it in GitHub Desktop.
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
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