Created
December 1, 2022 08:30
-
-
Save blueberry404/6fd6c1d707e8eedd3034ddc28b0be99c to your computer and use it in GitHub Desktop.
ProductVariant Data
This file contains 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
data class ProductVariant(val id: String, val productName: String, val type: String) | |
sealed class ProductVariantUIState { | |
data class ProductVariantStateSuccess(val items: List<ProductVariant>): ProductVariantUIState() | |
data class ProductVariantStateFailure(val error: String): ProductVariantUIState() | |
object Loading: ProductVariantUIState() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment