[NUI] Remove unused property of Transition
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Theme / DictionaryExternalTheme.cs
1 /*
2  * Copyright(c) 2021 Samsung Electronics Co., Ltd.
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 #if DEBUG
18
19 using System.Collections.Generic;
20
21 namespace Tizen.NUI
22 {
23     /// <summary>
24     /// This is a helper class to test external theme applying.
25     /// </summary>
26     internal class DictionaryExternalTheme : IExternalTheme
27     {
28         private readonly Dictionary<string, string> theme;
29
30         public DictionaryExternalTheme(string id, string version, Dictionary<string, string> theme)
31         {
32             Id = id;
33             Version = version;
34             this.theme = theme;
35         }
36
37         public string Id { get; }
38
39         public string Version { get; }
40
41         public string GetValue(string key)
42         {
43             theme.TryGetValue(key, out string extracted);
44
45             return extracted;
46         }
47     }
48 }
49 #endif