stoiveyp / Alexa.NET.Annotations

Library to help make writing your first Alexa skill smaller and easier
MIT License
0 stars 0 forks source link

Handle Interceptor filtering based on request type #16

Open stoiveyp opened 2 years ago

stoiveyp commented 2 years ago

Interceptor methods should be able to filter execution based on request type

e.g. The method has an IntentRequest parameter - so the generated class has an if statement that executes the method only if it's that kind of request, allowing intent logging

Extend interceptor ArgumentFactory methods to perform these checks and generate the necessary if statements. Implement Condition property in Interceptor argument detail returned by ArgumentFactory