Skip to content

Instantly share code, notes, and snippets.

@sreejithbnaick
Last active September 2, 2017 12:53
Show Gist options
  • Select an option

  • Save sreejithbnaick/af99aae08bebced59567a150bcd10ea0 to your computer and use it in GitHub Desktop.

Select an option

Save sreejithbnaick/af99aae08bebced59567a150bcd10ea0 to your computer and use it in GitHub Desktop.
Kotlin Class With Annotation
@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