[Tapi] Mark API Level as 4
[platform/core/csapi/tizenfx.git] / internal / src / Tizen.Tapi / Tizen.Tapi / TapiEventArgs.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 using System;
18
19 namespace Tizen.Tapi
20 {
21     /// <summary>
22     /// An extended EventArgs class which contains changed tapi state.
23     /// </summary>
24     /// <since_tizen> 4 </since_tizen>
25     public class StateChangedEventArgs : EventArgs
26     {
27         private int _state;
28
29         internal StateChangedEventArgs(int state)
30         {
31             _state = state;
32         }
33
34         /// <summary>
35         /// Tapi ready state.
36         /// </summary>
37         /// <since_tizen> 4 </since_tizen>
38         public int State
39         {
40             get
41             {
42                 return _state;
43             }
44         }
45     }
46
47     /// <summary>
48     /// An extended EventArgs class which contains changed TAPI notification.
49     /// </summary>
50     /// <since_tizen> 4 </since_tizen>
51     public class NotificationChangedEventArgs : EventArgs
52     {
53         private Notification _id;
54         private object _data;
55
56         internal NotificationChangedEventArgs(Notification id, object data)
57         {
58             _id = id;
59             _data = data;
60         }
61
62         /// <summary>
63         /// Notification Id.
64         /// </summary>
65         /// <since_tizen> 4 </since_tizen>
66         public Notification Id
67         {
68             get
69             {
70                 return _id;
71             }
72         }
73
74         /// <summary>
75         /// Notification data.
76         /// </summary>
77         /// <since_tizen> 4 </since_tizen>
78         public object Data
79         {
80             get
81             {
82                 return _data;
83             }
84         }
85     }
86
87     /// <summary>
88     /// An extended EventArgs class which contains changed TAPI property.
89     /// </summary>
90     /// <since_tizen> 4 </since_tizen>
91     public class PropertyChangedEventArgs : EventArgs
92     {
93         private Property _property;
94         private object _data;
95
96         internal PropertyChangedEventArgs(Property property, object data)
97         {
98             _property = property;
99             _data = data;
100         }
101
102         /// <summary>
103         /// Property definition type.
104         /// </summary>
105         /// <since_tizen> 4 </since_tizen>
106         public Property Property
107         {
108             get
109             {
110                 return _property;
111             }
112         }
113
114         /// <summary>
115         /// Property data.
116         /// </summary>
117         /// <since_tizen> 4 </since_tizen>
118         public object Data
119         {
120             get
121             {
122                 return _data;
123             }
124         }
125     }
126 }