Skip to content

Instantly share code, notes, and snippets.

@justinhj
Last active December 17, 2019 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinhj/fc4471240f9f3548d79e0f6e903c1d80 to your computer and use it in GitHub Desktop.
Save justinhj/fc4471240f9f3548d79e0f6e903c1d80 to your computer and use it in GitHub Desktop.
sealed trait BankAccountCommand[R] extends ReplyType[R]
case class DepositCmd(time: Instant, description: String, amount: Int)
extends BankAccountCommand[Int]
case class WithdrawCmd(time: Instant, description: String, amount: Int)
extends BankAccountCommand[WithdrawalResponse]
case class AssignAccountHolderEvt(time: Instant, accountHolder: String)
extends BankAccountEvent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment