Creating post model

Create a Post data class named Post.kt, and here is the sample code:

data class Post(
@SerializedName("id") var postId: Long?,
@SerializedName("text") var text: String?,
@SerializedName("postedBy") var profile: Profile?,
@SerializedName("accCreatedTime") var accCreatedTime: String?,
@SerializedName("comments") var comment: ArrayList<Comment>?,
@SerializedName("likes") var likes: ArrayList<Like>?
)

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.199.122