Guest User

Untitled

a guest
Jan 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. data class Contact(val name:String, val phoneNum:String)
  2.  
  3. interface ContactsListsApi{
  4. fetchContacts(): Single<List<Contact>>
  5. }
  6. interface ContactsListsContract{
  7. interface View{
  8. fun showProgress()
  9. fun hideProgress()
  10. fun setData(contacts: List<Contact>)
  11. }
  12. interface Presenter{
  13. fun fetchContacts()
  14. }
  15. }
  16.  
  17. class ContactsListPresenter(val view: ContactsListsContract.View, val api:ContactsListsApi): ContactsListsContract.Presenter {
  18. override fun fetchContacts(){
  19. }
Add Comment
Please, Sign In to add comment