forked from BotBuilderCommunity/botbuilder-community-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoogleRequestSchema.cs
More file actions
116 lines (100 loc) · 2.96 KB
/
Copy pathGoogleRequestSchema.cs
File metadata and controls
116 lines (100 loc) · 2.96 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
using System;
using System.Collections.Generic;
using System.Text;
namespace Bot.Builder.Community.Adapters.Google
{
public class GoogleRequestBody
{
public string ResponseId { get; set; }
public QueryResult QueryResult { get; set; }
public OriginalDetectIntentRequest OriginalDetectIntentRequest { get; set; }
public string Session { get; set; }
}
public class QueryResult
{
public string QueryText { get; set; }
public string Action { get; set; }
public Parameters Parameters { get; set; }
public bool AllRequiredParamsPresent { get; set; }
public OutputContext[] OutputContexts { get; set; }
public Intent Intent { get; set; }
public double IntentDetectionConfidence { get; set; }
public DiagnosticInfo DiagnosticInfo { get; set; }
public string LanguageCode { get; set; }
}
public class Parameters
{
}
public class Intent
{
public string Name { get; set; }
public string DisplayName { get; set; }
}
public class DiagnosticInfo
{
}
public class OutputContext
{
public string Name { get; set; }
}
public class OriginalDetectIntentRequest
{
public string Source { get; set; }
public string Version { get; set; }
public Payload Payload { get; set; }
}
public class Payload
{
public bool IsInSandbox { get; set; }
public Surface Surface { get; set; }
public Input[] Inputs { get; set; }
public User User { get; set; }
public Conversation Conversation { get; set; }
public AvailableSurface[] AvailableSurfaces { get; set; }
}
public class Surface
{
public Capability[] Capabilities { get; set; }
}
public class Capability
{
public string Name { get; set; }
}
public class User
{
public DateTime LastSeen { get; set; }
public string Locale { get; set; }
public string UserId { get; set; }
public string IdToken { get; set; }
public string AccessToken { get; set; }
public string UserStorage { get; set; }
}
public class Conversation
{
public string ConversationId { get; set; }
public string Type { get; set; }
public string ConversationToken { get; set; }
}
public class Input
{
public RawInput[] RawInputs { get; set; }
public Argument[] Arguments { get; set; }
public string Intent { get; set; }
}
public class RawInput
{
public string Query { get; set; }
public string InputType { get; set; }
}
public class Argument
{
public string RawText { get; set; }
public string TextValue { get; set; }
public string Name { get; set; }
public object Extension { get; set; }
}
public class AvailableSurface
{
public Capability[] Capabilities { get; set; }
}
}