I
I
iBadCoder2020-07-22 22:52:14
Android
iBadCoder, 2020-07-22 22:52:14

How can a presenter receive data from the network in MVP?

I recently started learning the MVP pattern.
I understood how the view and the presenter communicate with each other. But here's how the presenter gets data from an asynchronous request to the server - no.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Pavlovsky, 2020-07-31
@TranE91

From Model)
I advise you to read these articles, here everything is chewed in detail how and why.
https://habr.com/ru/company/mobileup/blog/313538/
https://habr.com/ru/company/mobileup/blog/335382/ The
question is philosophical, it is more about how you want to represent Domain layer. It is possible on a wedge through a domain layer, it is possible directly with a hatchet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question