Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.Badge / Tizen.Applications / Badge.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 namespace Tizen.Applications
18 {
19     /// <summary>
20     /// Immutable class for getting information of the badge.
21     /// </summary>
22     public class Badge
23     {
24         private readonly string _appId;
25         private readonly int _count;
26         private readonly bool _isDisplay;
27
28         internal Badge(string appid, int count, bool isDisplay)
29         {
30             _appId = appid;
31             _count = count;
32             _isDisplay = isDisplay;
33         }
34
35         /// <summary>
36         /// Property for the count value of the badge.
37         /// </summary>
38         /// <since_tizen> 3 </since_tizen>
39         public int Count
40         {
41             get
42             {
43                 return _count;
44             }
45         }
46
47         /// <summary>
48         /// Property for the application ID of the badge.
49         /// </summary>
50         /// <since_tizen> 3 </since_tizen>
51         public string AppId
52         {
53             get
54             {
55                 return _appId;
56             }
57         }
58
59         /// <summary>
60         /// Property for the flag of 'display'.
61         /// </summary>
62         /// <since_tizen> 3 </since_tizen>
63         public bool IsDisplay
64         {
65             get
66             {
67                 return _isDisplay;
68             }
69         }
70     }
71 }