[Question] Which is better using contact? or dividing presenter between view interface?
binsolb opened this issue · comments
binsolb commented
Antonio Leiva commented
Sorry, don't understand de question 😕
Piotr commented
@antoniolg he' asking which approach is better:
- defining one
Contract
interface per package which would have internal interfaces forView
,Presenter
,Model
etc. which is used especially ingoogles-samples
like here:
https://github.com/googlesamples/android-architecture/blob/todo-mvp-clean/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksContract.java
or - defining seperate interface for every purpose like
View
,Presenter
,Repository
.
@binsolb it doesn't matter, both approaches are more cosmetic than functional. Choose your favorite.
Antonio Leiva commented
Closing this issue then! Thanks for your help @piotrek1543