Class RequestService

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

public class RequestService extends Object
  • Field Details

    • exceptionPojo

      public static Object exceptionPojo
  • Constructor Details

    • RequestService

      public RequestService()
  • Method Details

    • doGet

      public static <T> T doGet(String url, Type type)
    • doGet

      public static <T> T doGet(String url, Type pojoResposta, okhttp3.Headers header)
    • doGetWithPolling

      public static <T> T doGetWithPolling(String url, Type pojoResposta, okhttp3.Headers header, int pollingMiliseconds, int maxAttempts, Predicate<T> cb)
    • doPost

      public static <T> T doPost(String url, String body, Type pojoResposta)
    • doPost

      public static <T> T doPost(String url, String body, Type pojoResposta, okhttp3.Headers header)
    • doPost

      public static <T> T doPost(String url, Type pojoResposta, okhttp3.Headers header)
    • doPut

      public static <T> T doPut(String url, String body, Type pojoResposta, okhttp3.Headers header)
    • doDelete

      public static <T> T doDelete(String url, Type pojoResposta)
    • doDelete

      public static <T> T doDelete(String url, Type pojoResposta, okhttp3.Headers header)