summaryrefslogtreecommitdiff
path: root/Tizen.Messaging.Push/Tizen.Messaging.Push/PushMessageEventArgs.cs
blob: eba6c0e470e67730e7cf95fc3183a3d9a9054ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
 /*
 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
 *
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

using System;

namespace Tizen.Messaging.Push
{
    /// <summary>
    /// An extended EventArgs class, which contains the message received.
    /// </summary>
    /// <since_tizen> 3 </since_tizen>
    public class PushMessageEventArgs : EventArgs
    {
        /// <summary>
        /// Gives the Application Data recieved. </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <value>
        /// It is the string, which stores the application data.</value>
        public string AppData
        {
            get;
            internal set;
        }

        /// <summary>
        /// Gives the Message Received Field.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <value>
        /// It is the string, which stores the message field.</value>
        public string Message
        {
            get;
            internal set;
        }

        /// <summary>
        /// Gives the time at which the Notification was received.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <value>
        /// It is the DateTime field representing the time at which the Notification was received.</value>
        public DateTime ReceivedAt
        {
            get;
            internal set;
        }

        /// <summary>
        /// Gives the Sender of the notification.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <value>
        /// It is a string value representing the Sender of the Notification.</value>
        public string Sender
        {
            get;
            internal set;
        }

        /// <summary>
        /// Gives the session ID of the notification.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <value>
        /// It is a string value representing the session ID of the Notification.</value>
        public string SessionInfo
        {
            get;
            internal set;
        }

        /// <summary>
        /// Gives the request ID of the notification.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <value>
        /// It is a string value representing the request ID of the Notification.</value>
        public string RequestId
        {
            get;
            internal set;
        }

        /// <summary>
        /// Gives the value in the type field of the notification.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <value>
        /// It is an integer value representing the type field of the notification.</value>
        public int Type
        {
            get;
            internal set;
        }

        internal PushMessageEventArgs()
        {
            // Giving Default Values
            AppData = "";
            Message = "";
            ReceivedAt = new DateTime();
            Sender = "";
            SessionInfo= "";
            RequestId = "";
        }
    }
}