Last active
December 19, 2016 00:54
-
-
Save mfurtak/7b237779a4189e8f3e70d84932fc2ae7 to your computer and use it in GitHub Desktop.
Painful Alexa custom slot type value handling
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
switch (metric) { | |
case "status": | |
return buildStatusResponse(); | |
case "ability": // Close enough! | |
case "stability": | |
return buildStabilityResponse(); | |
case "grove": // Uh, sure. | |
case "gross": // This is how I feel. | |
case "growth": | |
return buildGrowthResponse(); | |
case "tension": // Is building... | |
case "retention": | |
return buildRetentionResponse(); | |
default: | |
return buildUnknownMetricResponse(metric) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment