You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data class IChapter<T>(
var _id: String,
var title: String,
var picture: T,
var createdAt: Long,
var updatedAt: Long
)
data class IMedia(
var _id: String,
var name: String,
var extension: String,
var path: String,
var size: Long,
var createdAt: Long,
var updatedAt: Long
)
I want to save this in prefrences.
object prefs : PreferenceHolder() {
var chapters: List<IChapter<IMedia>> by bindToPreferenceField(listOf())
}
These are my models
I want to save this in prefrences.
After i populate it with objects coming from this
If i close and open my app i get class cast error as below
Am i doing anything wrong?
The text was updated successfully, but these errors were encountered: