mercredi 13 janvier 2016

Where should the android service calls and calls to GoogleAPIClient be written while using MVP pattern in android?

I am trying to implement MVP pattern in my android project by referring to this link : http://ift.tt/1OPjyl2

I have successfully implemented the view / presenter / interactor classes. I am not clear on

  • Where to put the service call code?

Since i cannot get the context inside the presenter or interactor class, I am not able to put the service call there

  • Where to implement the GoogleApiClient class?

Since GoogleApiClient also requires context to run, it also cannot be implemented inside the presenter or interactor without a context

Aucun commentaire:

Enregistrer un commentaire