PlayPrompt.cs
1 using System.Collections.Generic;
2 using Newtonsoft.Json;
3 
4 namespace Microsoft.Bot.Builder.Calling.ObjectModel.Contracts
5 {
9  [JsonObject(MemberSerialization.OptOut)]
10  public class PlayPrompt : ActionBase
11  {
15  [JsonProperty(Required = Required.Always)]
16  public IEnumerable<Prompt> Prompts { get; set; }
17 
18  public PlayPrompt()
19  {
20  this.Action = ValidActions.PlayPromptAction;
21  }
22 
23  public override void Validate()
24  {
25  base.Validate();
26  Prompt.Validate(this.Prompts);
27  }
28  }
29 }
This is a helper class for validating actions specified by customers
Definition: ValidActions.cs:11
This is the action which customers can specify to indicate that the server call agent should play/tts...
Definition: PlayPrompt.cs:10
This class represents a single prompt
Definition: Prompt.cs:13