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; // ww w. j a v a 2 s .c o m import android.content.Context; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; @Module( complete = false, library = true ) public class DebugApiModule { private final Context app; public DebugApiModule(Context context) { app = context; } @Provides @Singleton MockBackend provideMockBackend() { return new MockBackend(app); } @Provides @Singleton OauthApi provideOauthApi(MockBackend loader) { return new MockOauthApi(loader); } @Provides @Singleton RelayrApi provideRelayrApi(MockBackend loader) { return new MockRelayrApi(loader); } @Provides @Singleton SubscriptionApi provideSubscriptionApi(MockBackend loader) { return new MockSubscriptionApi(loader); } @Provides @Singleton CloudApi provideCloudApi() { return new MockCloudApi(); } @Provides @Singleton StatusApi provideStatusApi(MockBackend loader) { return new MockStatusApi(loader); } }