更新
This commit is contained in:
24
app/src/main/java/com/aiosman/riderpro/model/MomentEntity.kt
Normal file
24
app/src/main/java/com/aiosman/riderpro/model/MomentEntity.kt
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.aiosman.riderpro.model
|
||||
|
||||
import androidx.annotation.DrawableRes
|
||||
|
||||
data class MomentEntity(
|
||||
val id: Int,
|
||||
val avatar: String,
|
||||
val nickname: String,
|
||||
val location: String,
|
||||
val time: String,
|
||||
val followStatus: Boolean,
|
||||
val momentTextContent: String,
|
||||
@DrawableRes val momentPicture: Int,
|
||||
val likeCount: Int,
|
||||
val commentCount: Int,
|
||||
val shareCount: Int,
|
||||
val favoriteCount: Int,
|
||||
val images: List<String> = emptyList(),
|
||||
val authorId: Int = 0,
|
||||
var liked: Boolean = false,
|
||||
var relPostId: Int? = null,
|
||||
var relMoment: MomentEntity? = null,
|
||||
var isFavorite: Boolean = false
|
||||
)
|
||||
Reference in New Issue
Block a user