Commit db5f5113 authored by Chris Lord's avatar Chris Lord

Add session attributes to events

parent 1a76a03a
......@@ -66,15 +66,16 @@ function loadSkills() {
var requestId = 0;
var sessionId = 'DefaultSession';
var sessionAttributes = {};
function createEvent(type) {
function createEvent(type, attributes) {
return {
version: '1.0',
session: {
sessionId: sessionId,
application: {
},
new: true
attributes: sessionAttributes
},
request: {
requestId: requestId++,
......@@ -137,6 +138,7 @@ function startSession(skill, id) {
if (id) {
sessionId = id;
}
sessionAttributes = {};
skill.context = createContext(skill);
var event = createEvent('LaunchRequest');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment