From fe301f9ae7cdc4feeeae28c4dd5d2f95becf9171 Mon Sep 17 00:00:00 2001 From: Eonji-sw Date: Sun, 24 Nov 2024 17:34:31 +0900 Subject: [PATCH] =?UTF-8?q?#111=20[MOD]=20:=20notice=20dummy=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/teamwable/news/NewsViewModel.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/feature/news/src/main/java/com/teamwable/news/NewsViewModel.kt b/feature/news/src/main/java/com/teamwable/news/NewsViewModel.kt index f408e9a2..15906290 100644 --- a/feature/news/src/main/java/com/teamwable/news/NewsViewModel.kt +++ b/feature/news/src/main/java/com/teamwable/news/NewsViewModel.kt @@ -6,6 +6,7 @@ import com.teamwable.common.uistate.UiState import com.teamwable.data.repository.NewsRepository import com.teamwable.model.news.NewsMatchModel import com.teamwable.model.news.NewsRankModel +import com.teamwable.news.model.NewsInfoModel import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.asStateFlow @@ -24,6 +25,17 @@ class NewsViewModel private val _rankUiState = MutableStateFlow>>(UiState.Loading) val rankUiState = _rankUiState.asStateFlow() + val dummyNotice = listOf( + NewsInfoModel(1, "와블 커뮤니티 업데이트 안내", "본문입니다 본문입니다 본문입니다 본문입니다 본문입니다 본문입니다 본문입니다 본문입니다 본문입니다", "www.11", "2024-01-10 11:47:18"), + NewsInfoModel(2, "제목2", "내용2", null, "2024-06-12 20:00:37"), + NewsInfoModel(3, "제목3", "내용3", "www.33", "2024-11-22 04:50:26"), + NewsInfoModel(3, "제목4", "내용4", "www.33", "2024-11-22 04:50:26"), + NewsInfoModel(3, "제목5", "내용5", "www.33", "2024-11-22 04:50:26"), + NewsInfoModel(3, "제목6", "내용6", "www.33", "2024-11-22 04:50:26"), + NewsInfoModel(3, "제목7", "내용7", "www.33", "2024-11-22 04:50:26"), + NewsInfoModel(3, "제목8", "내용8", "www.33", "2024-11-22 04:50:26"), + ) + init { getGameType() }