Skip to content

Repository

David edited this page Apr 1, 2020 · 2 revisions

It was decided that the Repository class would contain the necessary application status data, to be the single source of truth for data, for example:

  • The User instance that represents the currently logged in user,
  • The recipient user (in the context of direct messaging where the recipient user receives the messages sent by the logged user)
  • The last team the user visited.

Therefore, it is not necessary to pass this information between activities by intent, which frees us from having to place our model objects to implement the Parceable interface, but we lose some of the code expressiveness.