Skip to content

Commit

Permalink
#111 [MOD] : notice dummy 데이터 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonji-sw committed Nov 24, 2024
1 parent 2d44674 commit fe301f9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions feature/news/src/main/java/com/teamwable/news/NewsViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,6 +25,17 @@ class NewsViewModel
private val _rankUiState = MutableStateFlow<UiState<List<NewsRankModel>>>(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()
}
Expand Down

0 comments on commit fe301f9

Please sign in to comment.