Identifying entities used

Before we synchronize anything, we must identify exactly what we will synchronize. The answer to this question is obvious, but we will recapitulate the list of our entities anyway. We have two main entities we are planning to synchronize:

  • Note entity
  • Todo entity

They have the following attributes:

  • Common attributes:
    • title: String
    • message: String
    • location: Location (will be serialized)
Note that, currently, we represent the location with latitude and longitude in our database. We will change this to Text type since we will introduce Gson and Kotson for serialization/deserialization purposes!
  • Todo specific attributes are as follows:
    • scheduledFor: Long

Once again, open your classes and take a look at them. ...

Get Mastering Android Development with Kotlin now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.