strvcom / ios-chat-component

Chat modular library
MIT License
1 stars 1 forks source link

Add logic to detect reaching end of the data #14

Closed danpecher closed 4 years ago

danpecher commented 4 years ago

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 😄