Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Kotlin and Realm to write a data class #72

Open
jiangzhengnan opened this issue Jul 10, 2019 · 2 comments
Open

How to use Kotlin and Realm to write a data class #72

jiangzhengnan opened this issue Jul 10, 2019 · 2 comments

Comments

@jiangzhengnan
Copy link

like this :
data class Sms(
var content: String? = null,
var timeStr: String? = null,
var time: String? = null,
var from: String? = null,
var to: String? = null
) :
RealmObject()

@Mr-Ramzan
Copy link

Hi @jiangzhengnan does realm work with dataclases?

@jiangzhengnan
Copy link
Author

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants