Setting since_tizen 3/4 on Tizen.NET API
[platform/core/csapi/tizenfx.git] / src / Tizen.CallManager / Tizen.CallManager / CallEventData.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.CallManager
20 {
21     /// <summary>
22     /// A class which contains information about call event data.
23     /// </summary>
24     public class CallEventData
25     {
26         internal uint EventId;
27         internal MultiSimSlot Slot;
28         internal CallEndCause Cause;
29         internal CallData Incoming;
30         internal CallData Active;
31         internal CallData Held;
32         internal CallEventData()
33         {
34         }
35
36         /// <summary>
37         /// Get the Call id of the number for which Call event has occurred.
38         /// </summary>
39         public uint Id
40         {
41             get
42             {
43                 return EventId;
44             }
45         }
46
47         /// <summary>
48         /// Get the Sim slot type.
49         /// </summary>
50         public MultiSimSlot SimSlot
51         {
52             get
53             {
54                 return Slot;
55             }
56         }
57
58         /// <summary>
59         /// Get call end cause type.
60         /// </summary>
61         public CallEndCause EndCause
62         {
63             get
64             {
65                 return Cause;
66             }
67         }
68
69         /// <summary>
70         /// Get incoming call data.
71         /// </summary>
72         public CallData IncomingData
73         {
74             get
75             {
76                 return Incoming;
77             }
78         }
79
80         /// <summary>
81         /// Get active call data.
82         /// </summary>
83         public CallData ActiveData
84         {
85             get
86             {
87                 return Active;
88             }
89         }
90
91         /// <summary>
92         /// Get the call data for held call.
93         /// </summary>
94         public CallData HeldData
95         {
96             get
97             {
98                 return Held;
99             }
100         }
101     }
102 }