Пример #1
0
        private AlexaResponse GenerateFallbackResponse(Adventure adventure, AdventureNode curNode)
        {
            AdventureNode fallbackNode = adventure.GetUnknownNode();

            if (fallbackNode == null)
            {
                throw new Exception($"Help node {fallbackNode.Name} not found");
            }

            AlexaResponse resp = MergeNodeResponses(fallbackNode, curNode, adventure.VoiceId);

            return(resp);
        }