[MediaController] Fix CustomCommand crash issue (#5652)
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.Badge / Tizen.Applications / BadgeEventArgs.cs
1 /*
2  * Copyright (c) 2016 - 2017 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     using System;
20
21     /// <summary>
22     /// The class for event arguments of the badge event.
23     /// </summary>
24     /// <since_tizen> 3 </since_tizen>
25     public class BadgeEventArgs : EventArgs
26     {
27         internal BadgeEventArgs()
28         {
29         }
30
31         /// <summary>
32         /// Enumeration for the badge action.
33         /// </summary>
34         /// <since_tizen> 3 </since_tizen>
35         public enum Action : int
36         {
37             /// <summary>
38             /// The badge was added.
39             /// </summary>
40             Add = 0,
41
42             /// <summary>
43             /// The badge was removed.
44             /// </summary>
45             Remove,
46
47             /// <summary>
48             /// The badge was updated.
49             /// </summary>
50             Update,
51         }
52
53         /// <summary>
54         /// The property for the badge object.
55         /// </summary>
56         /// <since_tizen> 3 </since_tizen>
57         public Badge Badge { get; internal set; }
58
59         /// <summary>
60         /// The property for the action value.
61         /// </summary>
62         /// <since_tizen> 3 </since_tizen>
63         public Action Reason { get; internal set; }
64     }
65 }