更改目录结构
This commit is contained in:
75
app/src/main/java/com/aiosman/riderpro/model/MomentItem.kt
Normal file
75
app/src/main/java/com/aiosman/riderpro/model/MomentItem.kt
Normal file
@@ -0,0 +1,75 @@
|
||||
package com.aiosman.riderpro.model
|
||||
|
||||
import androidx.annotation.DrawableRes
|
||||
import com.aiosman.riderpro.R
|
||||
|
||||
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,
|
||||
val favoriteCount: Int
|
||||
)
|
||||
|
||||
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(
|
||||
id = 2,
|
||||
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(
|
||||
id = 3,
|
||||
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)
|
||||
)
|
||||
Reference in New Issue
Block a user