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