Fix build error
[platform/core/csapi/tizenfx.git] / src / Tizen.Uix.Tts / Tizen.Uix.Tts / EngineChangedEventArgs.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 Tizen.Uix.Tts.SupportedVoice;
19
20 namespace Tizen.Uix.Tts
21 {
22     /// <summary>
23     /// This class holds information related to Engine Changed Event
24     /// </summary>
25     public class EngineChangedEventArgs
26     {
27         internal EngineChangedEventArgs(string engineId, string language, int voiceType, bool needCredential)
28         {
29             this.EngineId = engineId;
30             this.VoiceType = new SupportedVoice(language, voiceType);
31             this.NeedCredential = needCredential;
32         }
33
34         /// <summary>
35         /// Engine Id
36         /// </summary>
37         public string EngineId
38         {
39             get;
40             internal set;
41         }
42
43         /// <summary>
44         /// The necessity of credential
45         /// </summary>
46         public bool NeedCredential
47         {
48             get;
49             internal set;
50         }
51
52         /// <summary>
53         /// The supported voice
54         /// </summary>
55         public SupportedVoice VoiceType
56         {
57             get;
58             internal set;
59         }
60     }
61 }