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); }
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); }