Skip to content

Instantly share code, notes, and snippets.

@thalissondev-xx
Last active February 3, 2017 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thalissondev-xx/e0468427ef08980ad14c4ba26207203f to your computer and use it in GitHub Desktop.
Save thalissondev-xx/e0468427ef08980ad14c4ba26207203f to your computer and use it in GitHub Desktop.
OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
httpClient.addNetworkInterceptor(new AddHeaderInterceptor(activity, action, version));
Retrofit retrofit = new Retrofit.Builder()
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
.addConverterFactory(GsonConverterFactory.create())
.baseUrl(ServiceFretebras.SERVICE_ENDPOINT)
.build();
Class test
ServiceRequestConfig service = new ServiceRequestConfig(
context, arg01, arg02);
Observable<FreteDetalhes> observable = service
.get()
.........
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment