Last active
July 1, 2019 06:42
-
-
Save samuelorji/dab701601994217cd0a432f57cf798c8 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
(messageGateway ? SendMessageToClientRequest ( | |
id = id, | |
phoneNumber = pNumber, | |
msg = message | |
)).mapTo[SendMessageToClientResponse] onComplete { | |
case Success(res) => res match { | |
case SendMessageToClientResponse(true) => | |
currentSender ! SendCustomMessageResponse(true) | |
case SendMessageToClientResponse(false) => | |
currentSender ! SendCustomMessageResponse(false) | |
} | |
case Failure(ex) => | |
//Log Error | |
case SendMessageToClientResponse(false) => | |
currentSender ! SendCustomMessageResponse(false) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment