Relationship between MVPs

Relationship between MVPs

Ea844bbe25d382c7eb96c711bed152d1?s=128

Alexandra Tritz

May 23, 2019
Tweet

Transcript

  1. None
  2. Alexandra TRITZ Laurent RUSSIER

  3. None
  4. TheFork Focus PVVP Listeners EventBus Listeners & Interactors Menu

  5. None
  6. None
  7. TheFork 60,000 restaurants in 18 countries 14 million reviews +21

    million monthly visits +16 million app downloads
  8. TheFork team 6 android devs in 2 countries 1 shared

    PO 5 iOS devs design team shared
  9. None
  10. TheFork

  11. TheFork

  12. TheFork

  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. None
  20. None
  21. None
  22. None
  23. None
  24. None
  25. None
  26. None
  27. None
  28. None
  29. None
  30. None
  31. None
  32. None
  33. None
  34. None
  35. None
  36. None
  37. None
  38. None
  39. None
  40. None
  41. None
  42. None
  43. None
  44. None
  45. None
  46. None
  47. None
  48. None
  49. None
  50. None
  51. None
  52. None
  53. None
  54. None
  55. None
  56. RestaurantListPresenter.kt class RestaurantListPresenterImpl : RestaurantListPresenter { fun onScroll(lastItemViewed: Int) {

    restaurantListListener?.onScrolled(lastItemViewed) // internal logic } } MapPresenterImpl.kt class MapPresenterImpl : MapPresenter { fun onClickPin(pinClicked: Int) { mapListener?.onClickPin(pinClicked) // internal logic } }
  57. RestaurantListPresenter.kt class RestaurantListPresenterImpl : RestaurantListPresenter { fun onScroll(lastItemViewed: Int) {

    restaurantListListener?.onScrolled(lastItemViewed) // internal logic } } MapPresenterImpl.kt class MapPresenterImpl : MapPresenter { fun onClickPin(pinClicked: Int) { mapListener?.onClickPin(pinClicked) // internal logic } }
  58. RestaurantListInteractor.kt interface RestaurantListInteractor { fun highlightRestaurantCard(restaurantIndex: Int) } MapInteractor.kt interface

    MapInteractor { fun highlightPin(restaurantIndex: Int) }
  59. RestaurantListInteractor.kt interface RestaurantListInteractor { fun highlightRestaurantCard(restaurantIndex: Int) } MapInteractor.kt interface

    MapInteractor { fun highlightPin(restaurantIndex: Int) }
  60. SearchPresenterImpl.kt class SearchPresenterImpl @Inject constructor( private val view: SearchView :

    SearchPresenter, RestaurantListListener, MapListener { private var restaurantListInteractor: RestaurantListInteractor? = null private var mapInteractor: MapInteractor? = null override fun onScrolled(restaurantIndex: Int) { mapInteractor?.highlightPin(restaurantIndex) } override fun onClickPin(restaurantIndex: Int) { restaurantListInteractor?.highlightRestaurantCard(restaurantIndex) } }
  61. SOLID PRINCIPLE S O L I D

  62. None
  63. None
  64. None
  65. None
  66. None
  67. None
  68. Conclusion

  69. THANK YOU !

  70. QUESTIONS ?

  71. Alexandra Tritz & Laurent Russier