We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e6b6fc commit 2303c47Copy full SHA for 2303c47
presentation/src/main/java/com/whyranoid/presentation/model/UiState.kt
@@ -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