Skip to content

Instantly share code, notes, and snippets.

@samuelorji
Last active July 1, 2019 06:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelorji/dab701601994217cd0a432f57cf798c8 to your computer and use it in GitHub Desktop.
Save samuelorji/dab701601994217cd0a432f57cf798c8 to your computer and use it in GitHub Desktop.
(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