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
| module.exports = { | |
| talks: [ | |
| {"time": "09:00", "title":"<lang xml:lang='en-US'>Keynote</lang>", "topics":[]}, | |
| {"time": "10:15", "title":"Dando a amor a los tests con Kotlin", "topics":["jvm"]}, | |
| {"time": "11:15", "title":"Alexa, ¿has venido para quedarte?", "topics":["alexa", "asistentes de voz"]}, | |
| {"time": "12:15", "title":"Java 10, ¿mito o realidad?", "topics":["jvm"]}, | |
| {"time": "13:15", "title":"Conoce a LUIS", "topics":["microsoft", "asistentes de voz"]}, | |
| {"time": "15:30", "title":"Creando un juego con el asistente de Google", "topics":["google", "asistentes de voz"]}, | |
| {"time": "16:30", "title":"El modelo Spotify", "topics":["agile"]}, | |
| {"time": "17:45", "title":"Keynote de cierre", "topics":[]} |
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
| { | |
| "interactionModel": { | |
| "languageModel": { | |
| "invocationName": "conferencia molona", | |
| "intents": [ | |
| { | |
| "name": "AMAZON.CancelIntent", | |
| "samples": [] | |
| }, | |
| { |
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
| private val skill = Skills.standard() | |
| .addRequestInterceptor(LogRequestInterceptor()) | |
| .addResponseInterceptor(LogResponseInterceptor()) | |
| .addRequestHandlers( | |
| LaunchRequestHandler(), | |
| HelpIntentHandler(), | |
| CancelAndStopIntentHandler(), | |
| NewReleasesIntentHandler(moviesGetter), | |
| YesIntentHandler(moviesGetter), | |
| NoIntentHandler(), |
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
| class LogResponseInterceptor : ResponseInterceptor { | |
| override fun process(input: HandlerInput, response: Optional<Response>) { | |
| response.ifPresent { println("Response: ${JacksonSerializer().serialize(it)}") } | |
| } | |
| } |
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
| class LogRequestInterceptor : RequestInterceptor { | |
| override fun process(input: HandlerInput) { | |
| println("Request: ${JacksonSerializer().serialize(input.request)}") | |
| } | |
| } |
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
| { | |
| "interactionModel": { | |
| "languageModel": { | |
| "invocationName": "estrenos de cine", | |
| "intents": [ | |
| ... | |
| { | |
| "name": "NewReleasesIntent", | |
| "slots": [ | |
| { |
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
| public class NewReleasesIntentHandler implements RequestHandler { | |
| ... | |
| @Override | |
| public Optional<Response> handle(HandlerInput input) { | |
| ... | |
| // Collect the slot from the request | |
| ... | |
| String text = null; | |
| String reprompText = null; |
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
| public class NewReleasesIntentHandler implements RequestHandler { | |
| ... | |
| @Override | |
| public Optional<Response> handle(HandlerInput input) { | |
| Request request = input.getRequestEnvelope().getRequest(); | |
| IntentRequest intentRequest = (IntentRequest) request; | |
| Intent intent = intentRequest.getIntent(); | |
| Map<String, Slot> slots = intent.getSlots(); | |
| Slot releasesDate = slots.get("releasesDate"); |
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
| "request": { | |
| "type": "IntentRequest", | |
| "requestId": "", | |
| "timestamp": "2019-02-23T19:05:38Z", | |
| "locale": "es-ES", | |
| "intent": { | |
| "name": "AMAZON.HelpIntent", | |
| "confirmationStatus": "NONE" | |
| } | |
| } |
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
| { | |
| "body": { | |
| "version": "1.0", | |
| "response": { | |
| "outputSpeech": { | |
| "type": "SSML", | |
| "ssml": "<speak>Bienvenido a Estrenos de Cine! Pregúntame por los estrenos de cine de esta semana</speak>" | |
| }, | |
| "card": { | |
| "type": "Simple", |