Giter Site home page Giter Site logo

alexa.net.statemanagement's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

alexa.net.statemanagement's Issues

IPersistenceStore Interface is Incorrect

I believe the IPersistenceStore interface is incorrect and it does not currently match the java sdk. Currently the nodejs and java sdk's have methods for GetAttributes() and Save. I understand you took a slightly different approach of allowing to retrieve and item by key which is fine. If you leave it as is though, the SkillRequest object should be passed in to both the Get and Set methods. This is because the Alexa user id or Device id are used in the nodejs and java persistence interfaces as the key for the attributes record. I would make the change and submit a pull request, but the Alexa.NET.RequestHandlers Repository has a dependency on this Repository. Have you considered combining these into a single repository and have State Management be a part of the Request Handlers repository? You should still be able to generate separate Nuget packages if you needed to.

How to use it?

Hello Steven,
Could you please give a simple example of how to use your StateManagement? I can't figure out how to use even reading unit tests. I have starting a skill's development based from your PetMatch sample but I need to add session attributes and I am stuck.
Thanks!
Regards,
jcb

Losing session state of integer values

It appears the session state of integer values are dropping during round trips between the Alexa device and the Lambda function. It appears to be working fine for string values.

Examples

BEFORE

skillState.SetSession("fruit", "apple");
skillState.SetSession("number", 100);

return ResponseBuilder.Tell(new SsmlOutputSpeech { Ssml = $"{speech}" }, skillState.Session);

AFTER

var fruit = skillState.GetSession("fruit"); // fruit = "apple"
var number = skillState.GetSession("number"); // number = 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.