Ejemplo n.º 1
0
 public static RestClientUtils getRestClientUtils() {
   if (mRestClientUtils == null) {
     OAuthAuthenticator authenticator = OAuthAuthenticatorFactory.instantiate();
     mRestClientUtils = new RestClientUtils(requestQueue, authenticator, mOnAuthFailedListener);
   }
   return mRestClientUtils;
 }
Ejemplo n.º 2
0
 public static RestClientUtils getRestClientUtilsV1_2() {
   if (mRestClientUtilsVersion1_2 == null) {
     OAuthAuthenticator authenticator = OAuthAuthenticatorFactory.instantiate();
     mRestClientUtilsVersion1_2 =
         new RestClientUtils(
             requestQueue,
             authenticator,
             mOnAuthFailedListener,
             RestClient.REST_CLIENT_VERSIONS.V1_2);
   }
   return mRestClientUtilsVersion1_2;
 }