Пример #1
0
 public LaunchRequest(SkillRequest skillRequest)
 {
     this.userProfile       = new UserProfileDB(skillRequest.Session.User.UserId, LOGGER.log);
     this.sessionAttributes = new SessionAttributes(LOGGER.log);
     this.productInventory  = new ProductInventory(skillRequest);
     AlexaResponse.SetSessionAttributeHandler(sessionAttributes);
 }
Пример #2
0
 public Intent(SkillRequest request)
 {
     this.skillRequest      = request;
     this.userProfile       = new UserProfileDB(skillRequest.Session.User.UserId, LOGGER.log);
     this.sessionAttributes = new SessionAttributes(LOGGER.log);
     this.sessionAttributes.UpdateSessionAttributes(skillRequest.Session.Attributes);
     AlexaResponse.SetSessionAttributeHandler(sessionAttributes);
     this.products = new ProductInventory(request);
 }