Guest User

Untitled

a guest
Jun 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. /**
  2. * Component providing inject() methods for presenters.
  3. */
  4. @Singleton
  5. @Component(modules = [(NetworkModule::class)])
  6. interface ViewModelInjector {
  7. /**
  8. * Injects required dependencies into the specified PostListViewModel.
  9. * @param postListViewModel PostListViewModel in which to inject the dependencies
  10. */
  11. fun inject(postListViewModel: PostListViewModel)
  12.  
  13. @Component.Builder
  14. interface Builder {
  15. fun build(): ViewModelInjector
  16.  
  17. fun networkModule(networkModule: NetworkModule): Builder
  18. }
  19. }
Add Comment
Please, Sign In to add comment