Skip to content

Commit

Permalink
feat/#9: UiState 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youjin09222 committed May 24, 2024
1 parent 3d274e2 commit 4781a17
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/src/main/java/com/sopt/now/test/core/view/UiState.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.sopt.now.test.core.view

sealed interface UiState<out T> {
data object Loading : UiState<Nothing>

data class Success<T>(
val data: T,
) : UiState<T>

data class Failure(
val errorMessage: String,
) : UiState<Nothing>
}

0 comments on commit 4781a17

Please sign in to comment.