Class RequestService

java.lang.Object
org.brerp.whatsapp.util.RequestService

public class RequestService extends Object
  • Constructor Details

    • RequestService

      public RequestService()
  • Method Details

    • doGet

      public static Object doGet(String url, Class<?> pojoResposta)
    • doPost

      public static Object doPost(String url, String body, Class<?> pojoResposta)
    • doDelete

      public static Object doDelete(String url, Class<?> pojoResposta)
    • doGetCustomHeader

      public static Object doGetCustomHeader(String url, Class<?> pojoResposta, okhttp3.Headers header)
    • doPostCustomHeader

      public static Object doPostCustomHeader(String url, String body, Class<?> pojoResposta, okhttp3.Headers header)
    • doDeleteCustomHeader

      public static Object doDeleteCustomHeader(String url, Class<?> pojoResposta, okhttp3.Headers header)