I added a datatype DataPayload to hold the incoming data and information whether we reached the end of the data. We could use this datatype in the future to distinguish between updates/deletions/new data. All the logic is kept in the ChatCore so it doesn't have to be reimplemented in any new networking implementations.
I might have one concern about pagination and REST API vs Firebase (we can discuss on today's meeting).
Maybe as an exercise of our code we could try to implement networking for some simple REST API as well 😄
I added a datatype
DataPayload
to hold the incoming data and information whether we reached the end of the data. We could use this datatype in the future to distinguish between updates/deletions/new data. All the logic is kept in theChatCore
so it doesn't have to be reimplemented in any new networking implementations.I might have one concern about pagination and REST API vs Firebase (we can discuss on today's meeting). Maybe as an exercise of our code we could try to implement networking for some simple REST API as well 😄