using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace BotSharp.Platform.Dialogflow.ViewModels { public class QueryModel { public QueryModel() { Contexts = new List(); } /// /// Array of additional context objects. Should be sent via a POST /query request. /// Contexts sent in a query are activated before the query. /// public List Contexts { get; set; } /// /// Object containing event name and additional data. /// The "data" parameter can be submitted only in POST requests. /// public String Event { get;set; } /// /// Language tag, e.g., en, es etc. /// public String Lang { get; set; } /// /// Natural language text to be processed. Query length should not exceed 256 characters. /// [Required] public String Query { get; set; } /// /// A string token up to 36 symbols long, used to identify the client and to manage session parameters (including contexts) per client. /// [Required] public String SessionId { get; set; } /// /// Time zone from IANA Time Zone Database Examples: America/New_York, Europe/Paris /// public String Timezone { get; set; } } }