-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kelvin Bush <kelybush@gmail.com>
- Loading branch information
1 parent
6ea8edb
commit ce14942
Showing
6 changed files
with
48 additions
and
31 deletions.
There are no files selected for viewing
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
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
4 changes: 4 additions & 0 deletions
4
app/src/main/java/com/kelvinbush/nectar/domain/model/CartProduct.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
package com.kelvinbush.nectar.domain.model | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class CartProduct( | ||
val id: String, | ||
val quantity: Int, | ||
val product: Product | ||
) | ||
|
||
@Serializable | ||
data class Product( | ||
val name: String, | ||
val imageUrl: String, | ||
val price: Double, | ||
) | ||
|
||
|
||
@Serializable | ||
data class CartItemList( | ||
val cartItems: List<CartProduct>? = emptyList(), | ||
) |
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
5 changes: 5 additions & 0 deletions
5
app/src/main/java/com/kelvinbush/nectar/navigation/DetailsNavArguments.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.kelvinbush.nectar.navigation | ||
|
||
/*data class DetailsNavArguments( | ||
val navArguments: List<> | ||
)*/ |
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