Change Exceptions and Properties and Add API level
[platform/core/csapi/uix-stt.git] / Tizen.Uix.Stt / Tizen.Uix.Stt / ResultTime.cs
1 /*
2 * Copyright (c) 2016 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
18 using static Interop.Stt;
19
20 namespace Tizen.Uix.Stt
21 {
22     /// <summary>
23     /// This Class represents the result of recognition result from the engine.
24     /// </summary>
25     /// <since_tizen> 3 </since_tizen>
26     public class ResultTime
27     {
28         internal ResultTime(int index, TimeEvent e, string text, long startTime, long endTime)
29         {
30             Index = index;
31             TokenEvent = e;
32             Text = text;
33             StartTime = startTime;
34             EndTime = endTime;
35         }
36
37         /// <summary>
38         /// The result index
39         /// </summary>
40         /// <since_tizen> 3 </since_tizen>
41         public int Index
42         {
43             get;
44             internal set;
45         }
46
47         /// <summary>
48         /// The token event
49         /// </summary>
50         /// <since_tizen> 3 </since_tizen>
51         public TimeEvent TokenEvent
52         {
53             get;
54             internal set;
55         }
56
57         /// <summary>
58         /// The result text
59         /// </summary>
60         /// <since_tizen> 3 </since_tizen>
61         public string Text
62         {
63             get;
64             internal set;
65         }
66
67         /// <summary>
68         /// The start time of result text
69         /// </summary>
70         /// <since_tizen> 3 </since_tizen>
71         public long StartTime
72         {
73             get;
74             internal set;
75         }
76
77         /// <summary>
78         /// The end time of result text
79         /// </summary>
80         /// <since_tizen> 3 </since_tizen>
81         public long EndTime
82         {
83             get;
84             internal set;
85         }
86     }
87 }