Class RetrofitClientInstance


  • public class RetrofitClientInstance
    extends java.lang.Object
    Generates Retrofit instance with "api.neshan.org" base url. to prevent multiple Retrofit instances by different SDKs it just creates instance in first call
    See Also:
    Retrofit project
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static retrofit2.Retrofit getRetrofitInstance()
      return Retrofit instance if existing or generates one
      • Methods inherited from class java.lang.Object

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

      • RetrofitClientInstance

        public RetrofitClientInstance()
    • Method Detail

      • getRetrofitInstance

        public static retrofit2.Retrofit getRetrofitInstance()
        return Retrofit instance if existing or generates one