|
|
@ -177,12 +177,12 @@ private fun newsUiState(
|
|
|
|
|
|
|
|
|
|
|
|
sealed interface TopicUiState {
|
|
|
|
sealed interface TopicUiState {
|
|
|
|
data class Success(val followableTopic: FollowableTopic) : TopicUiState
|
|
|
|
data class Success(val followableTopic: FollowableTopic) : TopicUiState
|
|
|
|
object Error : TopicUiState
|
|
|
|
data object Error : TopicUiState
|
|
|
|
object Loading : TopicUiState
|
|
|
|
data object Loading : TopicUiState
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sealed interface NewsUiState {
|
|
|
|
sealed interface NewsUiState {
|
|
|
|
data class Success(val news: List<UserNewsResource>) : NewsUiState
|
|
|
|
data class Success(val news: List<UserNewsResource>) : NewsUiState
|
|
|
|
object Error : NewsUiState
|
|
|
|
data object Error : NewsUiState
|
|
|
|
object Loading : NewsUiState
|
|
|
|
data object Loading : NewsUiState
|
|
|
|
}
|
|
|
|
}
|
|
|
|