[VoiceControlManager][TCSACR-213] Add VoiceControlManager APIs (#841)
[platform/core/csapi/tizenfx.git] / src / Tizen.Uix.VoiceControlManager / Tizen.Uix.VoiceControlManager / ConversationRequestedEventArgs.cs
1 /*
2 * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 using System;
18
19 namespace Tizen.Uix.VoiceControlManager
20 {
21     /// <summary>
22     /// This Class contains the requests conversation from vc-daemon.
23     /// </summary>
24     public class ConversationRequestedEventArgs : EventArgs
25     {
26         internal ConversationRequestedEventArgs(string appId, string dispTextString, string uttTextString, bool continuous)
27         {
28             AppId = appId;
29             DisplayText = dispTextString;
30             UtterenceText = uttTextString;
31             IsContinuous = continuous;
32         }
33
34         /// <summary>
35         /// The application id of VC client to request dialog
36         /// </summary>
37         /// <since_tizen> 6 </since_tizen>
38         public string AppId
39         {
40             get;
41             private set;
42         }
43
44         /// <summary>
45         /// The display text requested to be displayed
46         /// </summary>
47         /// <since_tizen> 6 </since_tizen>
48         public string DisplayText
49         {
50             get;
51             private set;
52         }
53
54         /// <summary>
55         /// The utterence text requested to be spoken
56         /// </summary>
57         /// <since_tizen> 6 </since_tizen>
58         public string UtterenceText
59         {
60             get;
61             private set;
62         }
63
64         /// <summary>
65         /// If true, VoiceControlManager still has a conversation to deal with. And Start() should be called again.
66         /// </summary>
67         /// <since_tizen> 6 </since_tizen>
68         public bool IsContinuous
69         {
70             get;
71             private set;
72         }
73     }
74 }