Creating the Messenger API service and data repositories

A critical thing that we must consider before getting too deep in our application development process is data storage. We must ask ourselves two very important questions: Where will data be stored, and how will the stored data be accessed?

Pertaining to the location of data storage, data will be stored both locally (on the Android device) and remotely (on the Messenger API). The answer to the second question is similarly straightforward. To access stored data, we need to create suitable models, services, and repositories to facilitate data retrieval.

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.