@Override public void onSessionStarted( final SessionStartedRequest request, final Session session) throws SpeechletException { log.info("onSessionStarted requestId={}, sessionId={}", request.getRequestId(), session.getSessionId()); }
private SessionStartedRequest givenSessionStartedRequest() { return SessionStartedRequest.builder() .withRequestId(requestId) .withLocale(Locale.forLanguageTag(locale)) .withTimestamp(new Date()).build(); }
@Override public SpeechletRequest getSpeechletRequest() { return SessionStartedRequest.builder() .withLocale(session.getClient().getLocale()) .withTimestamp(session.getClient().getCurrentTimestamp()) .withRequestId(generateRequestId()) .build(); } }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
/** * Logs information about the session, and is triggered at the start of a new session. * * @param envelope SpeechletRequestEnvelope containing the Context, Session, Version, and SessionStartedRequest */ @Override public void onSessionStarted(final SpeechletRequestEnvelope<SessionStartedRequest> envelope) { LOG.info("onSessionStarted requestId={}, sessionId={}", envelope.getRequest().getRequestId(), envelope.getSession().getSessionId()); }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { SessionStartedRequest request = requestEnvelope.getRequest(); Session session = requestEnvelope.getSession(); log.info("onSessionStarted requestId={}, sessionId={}", request.getRequestId(), session.getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
/** * This is fired when a session is started. Here we could potentially initialize a session in * our own service for the user, or update a record in a table, etc. * @param speechletRequestEnvelope container for the speechlet request. */ @Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> speechletRequestEnvelope) { SessionStartedRequest sessionStartedRequest = speechletRequestEnvelope.getRequest(); Session session = speechletRequestEnvelope.getSession(); log.info("onSessionStarted requestId={}, sessionId={}", sessionStartedRequest.getRequestId(), session.getSessionId()); }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }
@Override public void onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope) { log.info("onSessionStarted requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); // any initialization logic goes here }