-
-
Save Teino1978-Corp/aa3ac2cc40314a50b85a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MockTweeterApi extends TweeterApi{ | |
public MockTweeterApi(Retrofit retrofit, LocalDataCache dataCache, Scheduler mainScheduler) { | |
super(retrofit, dataCache, mainScheduler); | |
} | |
@Override | |
public Observable<UserProfile> login(String username, String password) { | |
return Observable.just(new UserProfile(username, password)) | |
.observeOn(mainScheduler); | |
} | |
@Override | |
public Observable<Object> logout() { | |
return Observable.just(null) | |
.observeOn(mainScheduler); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment