Release 4.0.0-preview1-00286
[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 ContentCategory _category;
11         private readonly AppControl _result;
12         private readonly AppControlReplyResult _resultCode;
13
14         internal ResultEventArgs(ContentCategory category, AppControl result, AppControlReplyResult resultCode)
15         {
16             _category = category;
17             _result = result;
18             _resultCode = resultCode;
19         }
20
21         /// <summary>
22         /// Results are from the content category.
23         /// </summary>
24         public ContentCategory Category
25         {
26             get
27             {
28                 return _category;
29             }
30         }
31
32         /// <summary>
33         /// Property for result
34         /// The caller app has to use ExtraData property to get received data.
35         /// </summary>
36         public AppControl Result
37         {
38             get
39             {
40                 return _result;
41             }
42         }
43
44         /// <summary>
45         /// Property for result of AppControl
46         /// </summary>
47         public AppControlReplyResult ResultCode
48         {
49             get
50             {
51                 return _resultCode;
52             }
53         }
54     }
55 }