Skip to content

Instantly share code, notes, and snippets.

@mohanmanu484
Created May 28, 2024 09:08
Show Gist options
  • Save mohanmanu484/30e631a6984e97446d57317860fb58db to your computer and use it in GitHub Desktop.
Save mohanmanu484/30e631a6984e97446d57317860fb58db to your computer and use it in GitHub Desktop.
interface LoginGraph {
@Route(
screenName = "LoginScreen",
route = "login/{id}",
deeplinks = [
"share.market://app/login/{id}",
"https://example.com/login/{id}"
]
)
fun getLoginRoute(
@Path("id") id: Int,
@Query("isAdmin") isAdmin: Boolean = false
)
@Route(
screenName = "BuySellScreen",
route = "orders/{pprefId}?isModifyFlow={isModifyFlow}&orderId={orderId}",
useRouteAsDefaultDeeplink = true
)
fun getBuySellRoute(
@Path("pprefId") id: String,
@Query("isModifyFlow") isModifyFlow: Boolean = false,
@Query("orderId") orderId: String? = null
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment