Advertisement
Guest User

Untitled

a guest
Jan 14th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.27 KB | None | 0 0
  1. class MyPresenter {
  2.     private val interactor = MyInteractor()
  3.    
  4.     fun handleClick() {
  5.         // process button click
  6.         interactor.doWork()
  7.        
  8.         view?.update()
  9.     }
  10. }
  11.  
  12. class MyInteractor {
  13.     // access network and persistent storage here
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement