Skip to content

Instantly share code, notes, and snippets.

@josep2
Created November 22, 2019 13:51
Show Gist options
  • Save josep2/0dc8e7e82736a4c0ea056478618eb4ee to your computer and use it in GitHub Desktop.
Save josep2/0dc8e7e82736a4c0ea056478618eb4ee to your computer and use it in GitHub Desktop.
case class ConnectMessage(deviceId: Long)
case object DisconnectMessage
case object VolumeAdjustmentMessage
case object PauseMessage
class BluetoothHeadphones extends Actor {
def receive = {
case ConnectMessage(message) =>
case DisconnectMessage =>
case VolumeAdjustmentMessage =>
case PauseMessage =>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment