Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.AttachPanel / Tizen.Applications.AttachPanel / ResultEventArgs.cs
1 using System;
2
3 namespace Tizen.Applications.AttachPanel
4 {
5     /// <summary>
6     /// Class for event arguments of the result event
7     /// </summary>
8     public class ResultEventArgs : EventArgs
9     {
10         private readonly IntPtr _attachPanel;
11         private readonly ContentCategory _category;
12         private readonly AppControl _result;
13         private readonly AppControlReplyResult _resultCode;
14         private readonly IntPtr _userData;
15
16         internal ResultEventArgs(IntPtr attachPanel, ContentCategory category, AppControl result, AppControlReplyResult resultCode, IntPtr userData)
17         {
18             _attachPanel = attachPanel;
19             _category = category;
20             _result = result;
21             _resultCode = resultCode;
22             _userData = userData;
23         }
24
25         /// <summary>
26         ///  Property for attach panel object.
27         /// </summary>
28         public IntPtr AttachPanel { get { return _attachPanel; } }
29
30         /// <summary>
31         /// Results are from the content category.
32         /// </summary>
33         public ContentCategory Category { get { return _category; } }
34
35         /// <summary>
36         /// Property for result
37         /// The caller app has to use ExtraData property to get received data.
38         /// </summary>
39         public AppControl Result {  get { return _result; } }
40
41         /// <summary>
42         /// Property for result of AppControl
43         /// </summary>
44         public AppControlReplyResult ResultCode { get { return _resultCode; } }
45
46         /// <summary>
47         /// Property for user data
48         /// </summary>
49         public IntPtr UserData { get { return _userData; } }
50     }
51 }