We're making an app that will have some chat functionality and we're using the SendBird Android SDK to achieve this.
When the user logs in, we query SendBird for that user's GroupChannels, this returns a list of channels that the user is currently on. We wish to be able to persist this list.
Currently in the app, we use TinyDb to persist some data. However this is not possible with the list of GroupChannels because of this error:
Unable to invoke no-args constructor for com.sendbird.android.BaseMessage Register an InstanceCreator
So we also tried using an ORM library, Realm for Android. However this requires that we change SendBird classes to extend RealObject and we prefer not to tinker with SendBird's classes.
So I guess the real question is, how can we store/persist a list of objects that don't belong to us(SendBird classes).
Any help would be greatly appreciated.