diff --git a/app/src/main/java/com/sopt/now/test/core/view/UiState.kt b/app/src/main/java/com/sopt/now/test/core/view/UiState.kt new file mode 100644 index 0000000..a01629c --- /dev/null +++ b/app/src/main/java/com/sopt/now/test/core/view/UiState.kt @@ -0,0 +1,13 @@ +package com.sopt.now.test.core.view + +sealed interface UiState { + data object Loading : UiState + + data class Success( + val data: T, + ) : UiState + + data class Failure( + val errorMessage: String, + ) : UiState +} \ No newline at end of file