Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / shop / src / main / java / com / vayunmathur / shop / Route.kt

Route.kt27 lines · 626 BRaw
1package com.vayunmathur.shop
2
3import com.vayunmathur.library.util.NavKey
4import kotlinx.serialization.Serializable
5
6@Serializable
7sealed interface Route : NavKey {
8 @Serializable
9 data object Search : Route
10
11 @Serializable
12 data class ProductDetail(
13 val variantId: String,
14 val platformId: String,
15 val shopDomain: String,
16 ) : Route
17
18 @Serializable
19 data object Cart : Route
20
21 @Serializable
22 data object Orders : Route
23
24 /** Request (with its secret-bearing URL) lives in ShopViewModel, never in saved state. */
25 @Serializable
26 data object EmbeddedCheckout : Route
27}