Add Tizen.Application.ApplicationManager
[platform/core/csapi/tizenfx.git] / Tizen.Applications / Tizen.Applications.Manager / ApplicationChangedEventArgs.cs
1 /// Copyright 2016 by Samsung Electronics, Inc.,
2 ///
3 /// This software is the confidential and proprietary information
4 /// of Samsung Electronics, Inc. ("Confidential Information"). You
5 /// shall not disclose such Confidential Information and shall use
6 /// it only in accordance with the terms of the license agreement
7 /// you entered into with Samsung.
8
9 using System;
10
11 namespace Tizen.Applications.Manager
12 {
13     /// <summary>
14     /// ApplicationChangedEventArgs class. This class is an event arguments of the ApplicationLaunched and ApplicationTerminated events.
15     /// </summary>
16     public class ApplicationChangedEventArgs : EventArgs
17     {
18         private string _appid = "";
19         private int _pid = 0;
20         private ApplicationState _state = ApplicationState.None;
21
22         public ApplicationChangedEventArgs(string applicationId, int processId, int state)
23         {
24             _appid = applicationId;
25             _pid = processId;
26             _state = (ApplicationState)state;
27         }
28
29         /// <summary>
30         /// ApplicationId property.
31         /// </summary>
32         /// <returns>string application id.</returns>
33         public string ApplicationId
34         {
35             get
36             {
37                 return _appid;
38             }
39         }
40
41         /// <summary>
42         /// ProcessId property.
43         /// </summary>
44         /// <returns>int process id.</returns>
45         public int ProcessId
46         {
47             get
48             {
49                 return _pid;
50             }
51         }
52
53         /// <summary>
54         /// State property.
55         /// </summary>
56         /// <returns>ApplicationState enum value.</returns>
57         public ApplicationState State
58         {
59             get
60             {
61                 return _state;
62             }
63         }
64
65     }
66 }
67