Skip to content

Instantly share code, notes, and snippets.

@charroch
Created April 15, 2011 13:29
Show Gist options
  • Save charroch/921679 to your computer and use it in GitHub Desktop.
Save charroch/921679 to your computer and use it in GitHub Desktop.
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) =>
}
}
@kamilolesiejuk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment