Files
rider-pro-android-app/app/src/main/java/com/aiosman/riderpro/model/MomentItem.kt

77 lines
2.3 KiB
Kotlin
Raw Normal View History

2024-07-23 15:25:00 +08:00
package com.aiosman.riderpro.model
2024-06-22 04:25:20 +08:00
import androidx.annotation.DrawableRes
2024-07-23 15:25:00 +08:00
import com.aiosman.riderpro.R
2024-06-22 04:25:20 +08:00
data class MomentItem(
val id: Int,
@DrawableRes val avatar: Int,
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,
2024-07-28 15:07:08 +08:00
val favoriteCount: Int,
val images: List<String> = emptyList()
2024-06-22 04:25:20 +08:00
)
val momentTestItem = MomentItem(
id = 1,
avatar = R.drawable.default_avatar,
nickname = "Onyama Limba",
location = "Japan",
time = "2023.02.02 11:23",
followStatus = false,
momentTextContent = "By strongarming Ducati into giving him the factory seat.Marquez effectively …",
momentPicture = R.drawable.default_moment_img,
likeCount = 21,
commentCount = 43,
shareCount = 33,
favoriteCount = 211)
val profileMomentItems = listOf(
MomentItem(
id = 1,
avatar = R.drawable.default_avatar,
nickname = "Onyama Limba",
location = "Japan",
time = "2024.06.08 12:23",
followStatus = false,
momentTextContent = "Modifications that are made to make your motorbike more like you",
momentPicture = R.drawable.rider_pro_moment_demo_1,
likeCount = 2345,
commentCount = 12,
shareCount = 33,
favoriteCount = 211),
MomentItem(
2024-07-20 16:06:37 +08:00
id = 2,
2024-06-22 04:25:20 +08:00
avatar = R.drawable.default_avatar,
nickname = "Onyama Limba",
location = "Japan",
time = "2024.03.03 12:31",
followStatus = false,
momentTextContent = "At least 500 units will be made, to meet homologation requirements.",
momentPicture = R.drawable.rider_pro_moment_demo_2,
likeCount = 211,
commentCount = 33,
shareCount = 33,
favoriteCount = 211),
MomentItem(
2024-07-20 16:06:37 +08:00
id = 3,
2024-06-22 04:25:20 +08:00
avatar = R.drawable.default_avatar,
nickname = "Onyama Limba",
location = "Japan",
time = "2024.02.02 11:23",
followStatus = false,
momentTextContent = "The bike is already FIM legal (and soon-to-be MotoAmerica legal as well).",
momentPicture = R.drawable.rider_pro_moment_demo_3,
likeCount = 987,
commentCount = 21,
shareCount = 33,
favoriteCount = 211)
)