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