Skip to content
Discussion options

You must be logged in to vote

Hi @abpatel

There are several different types of data sources, so it depends what your needs are. All the available data sources are in the namespace Alexa.NET.APL.DataSources

If you're looking to just set properties - similar to the example in:
https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-data-source.html#object-datasource

Then here the type is object so you need an ObjectDataSource, so your example would be something along the lines of....

launchDirective.DataSources = new Dictionary<string, APLDataSource> {
    { "key", new ObjectDataSource{
          Properties = new Dictionary<string, object>{ { "key", "value" } }
    }
};

Hope this helps

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@abpatel
Comment options

Answer selected by abpatel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants