Deprecating Tizen.Messaging.Messages APIs (#5593)
[platform/core/csapi/tizenfx.git] / src / Tizen.Messaging / Tizen.Messaging.Messages / MessagesAddress.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 using System;
17
18 namespace Tizen.Messaging.Messages
19 {
20     /// <summary>
21     /// This class is used to manage the information of the message address.
22     /// </summary>
23     /// <since_tizen> 3 </since_tizen>
24     [Obsolete("Deprecated since API11. Might be removed in API13.")]
25     public class MessagesAddress
26     {
27         internal RecipientType Type;
28         /// <summary>
29         /// The address of the sender/recipient.
30         /// </summary>
31         /// <since_tizen> 3 </since_tizen>
32         public string Number { get; }
33
34         /// <summary>
35         /// Creates a message address.
36         /// </summary>
37         /// <param name="number">The recipient's address to receive a message.</param>
38         /// <since_tizen> 3 </since_tizen>
39         [Obsolete("Deprecated since API11. Might be removed in API13.")]
40         public MessagesAddress(string number)
41         {
42             Number = number;
43         }
44
45         internal MessagesAddress(RecipientType type, string number)
46         {
47             Type = type;
48             Number = number;
49         }
50     }
51 }