Back to project page android-sdk.
The source code is released under:
MIT License
If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.relayr.api; /*from ww w .j av a 2s. c om*/ import com.google.gson.reflect.TypeToken; import javax.inject.Inject; import io.relayr.model.OauthToken; import rx.Observable; import static io.relayr.api.MockBackend.AUTHORISE_USER; public class MockOauthApi implements OauthApi { private final MockBackend mMockBackend; @Inject public MockOauthApi(MockBackend mockBackend) { mMockBackend = mockBackend; } @Override public Observable<OauthToken> authoriseUser(String code, String clientId, String clientSecret, String grantType, String redirectUri, String scope) { return mMockBackend.createObservable(new TypeToken<OauthToken>() {}, AUTHORISE_USER); } }