Skip to content

Commit 2303c47

Browse files
committed
✨ UiState 추가
1 parent 6e6b6fc commit 2303c47

File tree

1 file changed

+12
-0
lines changed
  • presentation/src/main/java/com/whyranoid/presentation/model

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.whyranoid.presentation.model
2+
3+
sealed class UiState<out T> {
4+
5+
object UnInitialized : UiState<Nothing>()
6+
7+
object Loading : UiState<Nothing>()
8+
9+
data class Success<out T>(val value: T) : UiState<T>()
10+
11+
data class Failure(val throwable: Throwable) : UiState<Nothing>()
12+
}

0 commit comments

Comments
 (0)