Release 4.0.0-preview1-00267
[platform/core/csapi/tizenfx.git] / src / 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     /// <since_tizen> 3 </since_tizen>
25     public class PushMessageEventArgs : EventArgs
26     {
27         /// <summary>
28         /// Gives the Application Data recieved.
29         /// </summary>
30         /// <since_tizen> 3 </since_tizen>
31         /// <value>
32         /// It is the string, which stores the application data.
33         /// </value>
34         public string AppData
35         {
36             get;
37             internal set;
38         }
39
40         /// <summary>
41         /// Gives the Message Received Field.
42         /// </summary>
43         /// <since_tizen> 3 </since_tizen>
44         /// <value>
45         /// It is the string, which stores the message field.
46         /// </value>
47         public string Message
48         {
49             get;
50             internal set;
51         }
52
53         /// <summary>
54         /// Gives the time at which the Notification was received.
55         /// </summary>
56         /// <since_tizen> 3 </since_tizen>
57         /// <value>
58         /// It is the DateTime field representing the time at which the Notification was received.
59         /// </value>
60         public DateTime ReceivedAt
61         {
62             get;
63             internal set;
64         }
65
66         /// <summary>
67         /// Gives the Sender of the notification.
68         /// </summary>
69         /// <since_tizen> 3 </since_tizen>
70         /// <value>
71         /// It is a string value representing the Sender of the Notification.
72         /// </value>
73         public string Sender
74         {
75             get;
76             internal set;
77         }
78
79         /// <summary>
80         /// Gives the session ID of the notification.
81         /// </summary>
82         /// <since_tizen> 3 </since_tizen>
83         /// <value>
84         /// It is a string value representing the session ID of the Notification.
85         /// </value>
86         public string SessionInfo
87         {
88             get;
89             internal set;
90         }
91
92         /// <summary>
93         /// Gives the request ID of the notification.
94         /// </summary>
95         /// <since_tizen> 3 </since_tizen>
96         /// <value>
97         /// It is a string value representing the request ID of the Notification.
98         /// </value>
99         public string RequestId
100         {
101             get;
102             internal set;
103         }
104
105         /// <summary>
106         /// Gives the value in the type field of the notification.
107         /// </summary>
108         /// <since_tizen> 3 </since_tizen>
109         /// <value>
110         /// It is an integer value representing the type field of the notification.
111         /// </value>
112         public int Type
113         {
114             get;
115             internal set;
116         }
117
118         internal PushMessageEventArgs()
119         {
120             // Giving Default Values
121             AppData = "";
122             Message = "";
123             ReceivedAt = new DateTime();
124             Sender = "";
125             SessionInfo= "";
126             RequestId = "";
127         }
128     }
129 }