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
entityTodo
entity
They have the following attributes:
- Common attributes:
title
:String
message
:String
location
:Location
(will be serialized)
Note
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.