Last active
September 2, 2017 12:53
-
-
Save sreejithbnaick/af99aae08bebced59567a150bcd10ea0 to your computer and use it in GitHub Desktop.
Kotlin Class With Annotation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @JsonIgnoreProperties(ignoreUnknown = true) | |
| open class Comment { | |
| var user: User? = null | |
| var msg: String? = "" | |
| var date: String? = null | |
| var likeCount: Int = 0 | |
| var isDeleted: Boolean = false | |
| var isReported: Boolean = false | |
| constructor() | |
| @JsonIgnore | |
| constructor(cursor: Cursor) { | |
| } | |
| @JsonIgnore | |
| open fun getContentValues(): ContentValues { | |
| } | |
| } | |
| class FComment : Comment{ | |
| @JsonIgnore | |
| var id: String? = "" | |
| @JsonIgnore | |
| var liked: Boolean = false | |
| @JsonIgnore | |
| var contentId: String? = "" | |
| @JsonIgnore | |
| var contentType: Int = 0 | |
| constructor() : super() | |
| @JsonIgnore | |
| constructor(cursor: Cursor) : super(cursor) { | |
| } | |
| override fun getContentValues(): ContentValues { | |
| val contentValues = super.getContentValues() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment