Skip to content

Instantly share code, notes, and snippets.

@enginebai

enginebai/Post.kt

Created Jun 16, 2019
Embed
What would you like to do?
@Entity
data class Post(
@PrimaryKey
@SerializedName("id")
val id: String,
@SerializedName("sender")
@ColumnInfo
val sender: String?,
@SerializedName("caption")
@ColumnInfo
val caption: String?,
@SerializedName("media")
@ColumnInfo
val media: String?,
@SerializedName("timestamp")
@ColumnInfo
val timestamp: Long?
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.