Files
rider-pro-android-app/app/src/main/java/com/aiosman/riderpro/model/MomentEntity.kt
2024-08-22 23:43:01 +08:00

32 lines
784 B
Kotlin

package com.aiosman.riderpro.model
import androidx.annotation.DrawableRes
data class MomentImageEntity(
val id: Long,
val url: String,
val thumbnail: String,
val blurHash: String? = null
)
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<MomentImageEntity> = emptyList(),
val authorId: Int = 0,
var liked: Boolean = false,
var relPostId: Int? = null,
var relMoment: MomentEntity? = null,
var isFavorite: Boolean = false
)