[NUI] TCSACR-226 code change (#1032)
[platform/core/csapi/tizenfx.git] / src / Tizen.Messaging / Tizen.Messaging.Messages / MessagesEnumerations.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 namespace Tizen.Messaging.Messages
18 {
19     /// <summary>
20     /// Enumeration for the result of sending a message.
21     /// </summary>
22     /// <since_tizen> 3 </since_tizen>
23     public enum SentResult
24     {
25         /// <summary>
26         /// Message sending failed.
27         /// </summary>
28         Failed = -1,
29         /// <summary>
30         /// Message sending succeeded.
31         /// </summary>
32         Success = 0
33     }
34
35     /// <summary>
36     /// Enumeration for the message type.
37     /// </summary>
38     /// <since_tizen> 3 </since_tizen>
39     public enum MessageType
40     {
41         /// <summary>
42         /// The unknown type.
43         /// </summary>
44         Unknown = 0,
45         /// <summary>
46         /// The SMS type.
47         /// </summary>
48         Sms = 1,
49         /// <summary>
50         /// The MMS type.
51         /// </summary>
52         Mms = 2,
53         /// <summary>
54         /// The CB(Cell Broadcast) type.
55         /// </summary>
56         CellBroadcast = Sms | 1 << 4,
57         /// <summary>
58         /// The WAP Push type.
59         /// </summary>
60         Push = Sms | 10 << 4
61     }
62
63     /// <summary>
64     /// Enumeration for the message box type.
65     /// </summary>
66     /// <since_tizen> 3 </since_tizen>
67     public enum MessageBoxType
68     {
69         /// <summary>
70         /// All message box type.
71         /// </summary>
72         All = 0,
73         /// <summary>
74         /// The Inbox type.
75         /// </summary>
76         Inbox = 1,
77         /// <summary>
78         /// The Outbox type.
79         /// </summary>
80         Outbox = 2,
81         /// <summary>
82         /// The Sentbox type.
83         /// </summary>
84         Sentbox = 3,
85         /// <summary>
86         /// The Draft type.
87         /// </summary>
88         Draft = 4
89     }
90
91     /// <summary>
92     /// Enumeration for the SIM slot index of a message.
93     /// </summary>
94     /// <since_tizen> 3 </since_tizen>
95     public enum SimSlotId
96     {
97         /// <summary>
98         /// Unknown SIM Slot.
99         /// </summary>
100         Unknown = 0,
101         /// <summary>
102         /// SIM Slot 1.
103         /// </summary>
104         Sim1 = 1,
105         /// <summary>
106         /// SIM Slot 2.
107         /// </summary>
108         Sim2 = 2
109     }
110
111     /// <summary>
112     /// Enumeration for the recipient type of a message.
113     /// </summary>
114     internal enum RecipientType
115     {
116         /// <summary>
117         /// Unknown.
118         /// </summary>
119         Unknown = 0,
120         /// <summary>
121         /// 'To' recipient.
122         /// </summary>
123         To = 1,
124         /// <summary>
125         /// 'Cc' (carbon copy) recipient.
126         /// </summary>
127         Cc = 2,
128         /// <summary>
129         /// 'Bcc' (blind carbon copy) recipient.
130         /// </summary>
131         Bcc = 3
132     }
133
134     /// <summary>
135     /// Enumeration for the attachment type for the MMS messaging.
136     /// </summary>
137     /// <since_tizen> 3 </since_tizen>
138     public enum MediaType
139     {
140         /// <summary>
141         /// Unknown.
142         /// </summary>
143         Unknown = 0,
144         /// <summary>
145         /// The image.
146         /// </summary>
147         Image = 1,
148         /// <summary>
149         /// The audio.
150         /// </summary>
151         Audio = 2,
152         /// <summary>
153         /// The video.
154         /// </summary>
155         Video = 3
156     }
157 }