Is it possible to tell inside a chain of command if the current main interaction is in "After Call Work" mode?
Asked
Active
Viewed 166 times
1 Answers
1
Turns out if you can get the interaction object it's pretty easy. If it's not passed as a parameter in the the Execute method use the IInteractionManager to get it:
1) Get the IInteractionVoice object
From the parameters passed into Execute:
var interaction = parameters["CommandParameter"] as IInteraction;
or Inject an IInteractionManager in the constructor and use that:
IInteractionManager.Interactions
Then read the IInteraction.IsItPossibleToMarkDone property.

Eric Scherrer
- 3,328
- 1
- 19
- 34