-
-
Save virendersran01/e8c8337e40be182edf247c8639848d81 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