Skip to content

Instantly share code, notes, and snippets.

@olbrichj
Created June 6, 2018 14:32
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 olbrichj/073df2c757035dd2fb6b73553416e7b4 to your computer and use it in GitHub Desktop.
Save olbrichj/073df2c757035dd2fb6b73553416e7b4 to your computer and use it in GitHub Desktop.
public func confirm(intent: DanceIntent, completion: @escaping (DanceIntentResponse) -> Void) {
// Do Stuff
completion(DanceIntentResponse(code: .play, userActivity: nil))
}
public func handle(intent: DanceIntent, completion: @escaping (DanceIntentResponse) -> Void) {
// Do Stuff
completion(DanceIntentResponse.success(dance: dance, playTime: 10))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment