Skip to content

Instantly share code, notes, and snippets.

@blueberry404
Created December 1, 2022 08:30
Show Gist options
  • Save blueberry404/6fd6c1d707e8eedd3034ddc28b0be99c to your computer and use it in GitHub Desktop.
Save blueberry404/6fd6c1d707e8eedd3034ddc28b0be99c to your computer and use it in GitHub Desktop.
ProductVariant Data
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