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