Created
April 15, 2011 13:29
-
-
Save charroch/921679 to your computer and use it in GitHub Desktop.
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
trait AndroidDeviceAction | |
case class Install extends AndroidDeviceAction | |
case class Instrument(options:InstrumentOptions) extends AndroidDeviceAction | |
case class Monkey extends AndroidDeviceAction | |
case class MoneyScript(script:Script) extends AndroidDeviceAction | |
class AndroidDevice extends Actor with IDevice { | |
def receive = { | |
case Install => // install app | |
case Instrument => | |
case Monkey(s) => | |
case MoneyScript(s) => | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
line 11 - the (s) is just for plural, right?
also - extending IDevice is a massive job, and Device is final. how about this?: https://gist.github.com/938878