Skip to content

Instantly share code, notes, and snippets.

@ostronom
Created December 2, 2016 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ostronom/63ae762f9fd9847b64d5b6dcaa94886b to your computer and use it in GitHub Desktop.
Save ostronom/63ae762f9fd9847b64d5b6dcaa94886b to your computer and use it in GitHub Desktop.
object UnregisterCredentials {
def unapply(c: UnregisterPushCredentials.Creds): Option[PushCredentials] = c match {
case apple if apple.isApple => apple.apple
case google if google.isGoogle => google.google
case _ => None
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment