class DataManager {

    public Single<AccessToken> getAccessToken(String code) {
        return mMondroidService.getAccessToken(null, "authorization_code", BuildConfig.CLIENT_ID,
                BuildConfig.CLIENT_SECRET, BuildConfig.REDIRECT_URI, code)
                .doOnSuccess(new Action1<AccessToken>() {
                    @Override
                    public void call(AccessToken accessToken) {
                        mPreferencesHelper.putAccessToken(accessToken);
                    }
                });
    }

    @Inject public  DataManager(MondroidService mondroidService, PreferencesHelper preferencesHelper);

}