Created
November 22, 2019 13:51
-
-
Save josep2/0dc8e7e82736a4c0ea056478618eb4ee 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
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