Last active
December 19, 2016 00:46
-
-
Save mfurtak/473ed2b0d6a5c1b3596d937851bba011 to your computer and use it in GitHub Desktop.
Literal Alexa custom slot type value handling
This file contains hidden or 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
switch (metric) { | |
case "status": | |
return buildStatusResponse(); | |
case "stability": | |
return buildStabilityResponse(); | |
case "growth": | |
return buildGrowthResponse(); | |
case "retention": | |
return buildRetentionResponse(); | |
default: | |
// Too bad about those near misses! | |
// Return an error response. | |
return buildUnknownMetricResponse(metric) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment