d58e9c53be6b5f4ab2867e8917f7f2e5c2db1962
[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     public class ResultTime
26     {
27         internal ResultTime(int index, TimeEvent e, string text, long startTime, long endTime)
28         {
29             Index = index;
30             TokenEvent = e;
31             Text = text;
32             StartTime = startTime;
33             EndTime = endTime;
34         }
35
36         /// <summary>
37         /// The result index
38         /// </summary>
39         public int Index
40         {
41             get;
42             internal set;
43         }
44
45         /// <summary>
46         /// The token event
47         /// </summary>
48         public TimeEvent TokenEvent
49         {
50             get;
51             internal set;
52         }
53
54         /// <summary>
55         /// The result text
56         /// </summary>
57         public string Text
58         {
59             get;
60             internal set;
61         }
62
63         /// <summary>
64         /// The start time of result text
65         /// </summary>
66         public long StartTime
67         {
68             get;
69             internal set;
70         }
71
72         /// <summary>
73         /// The end time of result text
74         /// </summary>
75         public long EndTime
76         {
77             get;
78             internal set;
79         }
80     }
81 }