forked from SciSharp/BotSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQueryModel.cs
More file actions
49 lines (42 loc) · 1.52 KB
/
QueryModel.cs
File metadata and controls
49 lines (42 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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<string>();
}
/// <summary>
/// Array of additional context objects. Should be sent via a POST /query request.
/// Contexts sent in a query are activated before the query.
/// </summary>
public List<String> Contexts { get; set; }
/// <summary>
/// Object containing event name and additional data.
/// The "data" parameter can be submitted only in POST requests.
/// </summary>
public String Event { get;set; }
/// <summary>
/// Language tag, e.g., en, es etc.
/// </summary>
public String Lang { get; set; }
/// <summary>
/// Natural language text to be processed. Query length should not exceed 256 characters.
/// </summary>
[Required]
public String Query { get; set; }
/// <summary>
/// A string token up to 36 symbols long, used to identify the client and to manage session parameters (including contexts) per client.
/// </summary>
[Required]
public String SessionId { get; set; }
/// <summary>
/// Time zone from IANA Time Zone Database Examples: America/New_York, Europe/Paris
/// </summary>
public String Timezone { get; set; }
}
}