Wow
Toggle table of contents
10.0.0-beta.1
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Wow
migration-rehearsal
/
me.ahoo.wow.rehearsal.example
/
Cart
/
onCommand
on
Command
@
OnCommand
(
produces
=
[
CartItemAdded::class
,
CartQuantityChanged::class
]
)
fun
onCommand
(
command
:
AddCartItem
)
:
Decision
@
OnCommand
(
produces
=
[
CartItemRemoved::class
]
)
fun
onCommand
(
command
:
RemoveCartItem
)
:
Decision
@
OnCommand
(
produces
=
[
CartQuantityChanged::class
]
)
fun
onCommand
(
command
:
ChangeQuantity
)
:
Decision