public RestApi initialiseRestClient ( int logLevelNet , APIConfig . BaseURIs baseURIs ) { AuthManager authManager = new AuthManager ( ) { @ Override protected Observable < SessionData > restartSession ( ) { return reAuthenticate ( ) ; } } ; restClient = new RestClient ( new OkHttpAuthenticator ( authManager ) , logLevelNet , baseURIs . getService ( ) . toString ( ) ) ; service = restClient . getService ( ) ; setService ( service ) ; return service ; }
Initialise REST API client .