Created
June 14, 2023 09:26
-
-
Save Aldikitta/bc343703a9cae6866ad85c5495b31af8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed interface SallyResponseResource<out T> { | |
data class Success<T>(val data: T) : SallyResponseResource<T> | |
data class Error(val exception: AppException, val errorCode: String? = null) : | |
SallyResponseResource<Nothing> | |
data class Loading(val status: Boolean) : SallyResponseResource<Nothing> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment