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; // www . ja va2 s. co m import com.google.gson.reflect.TypeToken; import javax.inject.Inject; import io.relayr.model.Status; import rx.Observable; import static io.relayr.api.MockBackend.SERVER_STATUS; public class MockStatusApi implements StatusApi { private final MockBackend mMockBackend; @Inject public MockStatusApi(MockBackend mockBackend) { mMockBackend = mockBackend; } @Override public Observable<Status> getServerStatus() { return mMockBackend.createObservable(new TypeToken<Status>(){}, SERVER_STATUS); } }