Skip to content

Commit

Permalink
[add] : util UiState 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
chanubc committed Dec 31, 2023
1 parent 84594ed commit 66c0e58
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/main/java/org/sopt/dosopttemplate/utils/UiState.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.sopt.dosopttemplate.utils

sealed interface UiState<out T> {

object Loading : UiState<Nothing>

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

object Error : UiState<Nothing>
}

0 comments on commit 66c0e58

Please sign in to comment.