[Tapi] Mark API Level as 4
[platform/core/csapi/tizenfx.git] / internal / src / Tizen.Tapi / Tizen.Tapi / SmsData.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.Text;
18 using System.Collections.Generic;
19
20 namespace Tizen.Tapi
21 {
22     /// <summary>
23     /// A class which defines incoming SMS message notification data.
24     /// </summary>
25     /// <since_tizen> 4 </since_tizen>
26     public class SmsIncomingMessageNoti
27     {
28         internal string ScaVal;
29         internal int MsgLength;
30         internal string Data;
31         internal SmsNetType FormatType;
32
33         internal SmsIncomingMessageNoti()
34         {
35         }
36
37         /// <summary>
38         /// SCA.
39         /// </summary>
40         /// <since_tizen> 4 </since_tizen>
41         /// <value>Sca value represented in string.</value>
42         public string Sca
43         {
44             get
45             {
46                 return ScaVal;
47             }
48         }
49
50         /// <summary>
51         /// Message length.
52         /// </summary>
53         /// <since_tizen> 4 </since_tizen>
54         /// <value>Length of incoming message.</value>
55         public int MessageLength
56         {
57             get
58             {
59                 return MsgLength;
60             }
61         }
62
63         /// <summary>
64         /// Data.
65         /// </summary>
66         /// <since_tizen> 4 </since_tizen>
67         /// <value>Data representing incoming message information.</value>
68         public string SzData
69         {
70             get
71             {
72                 return Data;
73             }
74         }
75
76         /// <summary>
77         /// SMS format.
78         /// </summary>
79         /// <since_tizen> 4 </since_tizen>
80         /// <value>Format of the incoming SMS.</value>
81         public SmsNetType Format
82         {
83             get
84             {
85                 return FormatType;
86             }
87         }
88     }
89
90     /// <summary>
91     /// A class which defines incoming CB message notification data.
92     /// </summary>
93     /// <since_tizen> 4 </since_tizen>
94     public class SmsIncomingCbMessageNoti
95     {
96         internal SmsCbMsgType CbType;
97         internal short Len;
98         internal string Data;
99
100         internal SmsIncomingCbMessageNoti()
101         {
102         }
103
104         /// <summary>
105         /// Cell Broadcast message type.
106         /// </summary>
107         /// <since_tizen> 4 </since_tizen>
108         /// <value>Type of cell broadcast message.</value>
109         public SmsCbMsgType Type
110         {
111             get
112             {
113                 return CbType;
114             }
115         }
116
117         /// <summary>
118         /// Size of MsgData (which is the actual TPDU message).
119         /// </summary>
120         /// <since_tizen> 4 </since_tizen>
121         /// <value>Length of message data.</value>
122         public short Length
123         {
124             get
125             {
126                 return Len;
127             }
128         }
129
130         /// <summary>
131         /// Cell broadcast message data.
132         /// </summary>
133         /// <since_tizen> 4 </since_tizen>
134         /// <value>Message data representing cell broadcast message.</value>
135         public string SzMsgData
136         {
137             get
138             {
139                 return Data;
140             }
141         }
142     }
143
144     /// <summary>
145     /// A class which defines incoming ETWS message notification data.
146     /// </summary>
147     /// <since_tizen> 4 </since_tizen>
148     public class SmsIncomingEtwsMessageNoti
149     {
150         internal SmsEtwsMsgType EtwsType;
151         internal short Len;
152         internal string Data;
153
154         internal SmsIncomingEtwsMessageNoti()
155         {
156         }
157
158         /// <summary>
159         /// ETWS message type.
160         /// </summary>
161         /// <since_tizen> 4 </since_tizen>
162         /// <value>Type of ETWS message.</value>
163         public SmsEtwsMsgType Type
164         {
165             get
166             {
167                 return EtwsType;
168             }
169         }
170
171         /// <summary>
172         /// Size of MsgData (which is the actual TPDU message).
173         /// </summary>
174         /// <since_tizen> 4 </since_tizen>
175         /// <value>Length of message data.</value>
176         public short Length
177         {
178             get
179             {
180                 return Len;
181             }
182         }
183
184         /// <summary>
185         /// ETWS message data.
186         /// </summary>
187         /// <since_tizen> 4 </since_tizen>
188         /// <value>Message data representing ETWS message.</value>
189         public string SzMsgData
190         {
191             get
192             {
193                 return Data;
194             }
195         }
196     }
197 }