Merge packaging information to csproj
[platform/core/csapi/push.git] / Tizen.Messaging.Push / Tizen.Messaging.Push / PushMessageEventArgs.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;
18
19 namespace Tizen.Messaging.Push
20 {
21     /// <summary>
22     /// An extended EventArgs class which contains the message received.
23     /// </summary>
24     public class PushMessageEventArgs : EventArgs
25     {
26         /// <summary>
27         /// Gives the Application Data recieved. </summary>
28         /// <value>
29         /// It is the string which stores the application data.</value>
30         public string AppData
31         {
32             get;
33             internal set;
34         }
35
36         /// <summary>
37         /// Gives the Message Received Field.
38         /// </summary>
39         /// <value>
40         /// It is the string which stores the message field.</value>
41         public string Message
42         {
43             get;
44             internal set;
45         }
46
47         /// <summary>
48         /// Gives the time at which the Notification was received.
49         /// </summary>
50         /// <value>
51         /// It is the DateTime field representing the time at which the Notification was received.</value>
52         public DateTime ReceivedAt
53         {
54             get;
55             internal set;
56         }
57
58         /// <summary>
59         /// Gives the Sender of the notification.
60         /// </summary>
61         /// <value>
62         /// It is a string value representing the Sender of the Notification.</value>
63         public string Sender
64         {
65             get;
66             internal set;
67         }
68
69         /// <summary>
70         /// Gives the session ID of the notification.
71         /// </summary>
72         /// <value>
73         /// It is a string value representing the session ID of the Notification.</value>
74         public string SessionInfo
75         {
76             get;
77             internal set;
78         }
79
80         /// <summary>
81         /// Gives the request Id of the notification.
82         /// </summary>
83         /// <value>
84         /// It is a string value representing the request Id of the Notification.</value>
85         public string RequestId
86         {
87             get;
88             internal set;
89         }
90
91         /// <summary>
92         /// Gives the value in the type field of the notification.
93         /// </summary>
94         /// <value>
95         /// It is an integer value representing the type field of the notification.</value>
96         public int Type
97         {
98             get;
99             internal set;
100         }
101
102         internal PushMessageEventArgs()
103         {
104             // Giving Default Values
105             AppData = "";
106             Message = "";
107             ReceivedAt = new DateTime();
108             Sender = "";
109             SessionInfo= "";
110             RequestId = "";
111         }
112     }
113 }