Last active
May 16, 2019 08:09
-
-
Save ihrimech/6a3c5716e0d6f6bc9992526ff3fd2682 to your computer and use it in GitHub Desktop.
companion object of the minimal Human actor
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
object Human { | |
def props = Props[Human] | |
// Saying Hello | |
case object Hello | |
// Asking how Someone is | |
case object HowAreYou | |
// response to someone asking how we are | |
case class HowIAm(happy: Boolean) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment