Class RetrofitUtils


  • public final class RetrofitUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RetrofitUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static retrofit2.Retrofit retrofit​(okhttp3.OkHttpClient client, java.lang.String url)  
      static <T> T service​(okhttp3.OkHttpClient client, java.lang.String host, java.lang.Class<T> clazz)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetrofitUtils

        public RetrofitUtils()
    • Method Detail

      • retrofit

        public static retrofit2.Retrofit retrofit​(okhttp3.OkHttpClient client,
                                                  java.lang.String url)
      • service

        public static <T> T service​(okhttp3.OkHttpClient client,
                                    java.lang.String host,
                                    java.lang.Class<T> clazz)