[Device] Implementation of system.device module including error handling.
[platform/core/csapi/system.git] / Tizen.System / Device / DeviceEventArgs.cs
1 using System;
2
3 namespace Tizen.System
4 {
5     // Battery
6     public class BatteryCapacityChangedEventArgs : EventArgs
7     {
8         /// <summary>
9         /// The current capacity of the battery.
10         /// Capacity is an integer value from 0 to 100, that indicates remaining battery charge as a percentage of the maximum level.
11         /// </summary>
12         public int Capacity { get; internal set; }
13     }
14
15     public class BatteryLevelChangedEventArgs : EventArgs
16     {
17         /// <summary>
18         /// Level indicates the Current battery level status which is of type BatteryLevelStatus.
19         /// </summary>
20         public BatteryLevelStatus Level { get; internal set; }
21     }
22
23     public class BatteryChargingStateChangedEventArgs : EventArgs
24     {
25         /// <summary>
26         /// The charging state of the battery. Charging is of type boolean which indicates true/false based on currrent charging status.
27         /// </summary>
28         public bool Charging { get; internal set; }
29     }
30
31     // Display
32     public class DisplayStateChangedEventArgs : EventArgs
33     {
34         /// <summary>
35         /// State indicates the current display state of the device which is an enum of type DisplayState.
36         /// </summary>
37         public DisplayState State { get; internal set; }
38     }
39
40     // Led
41     public class LedBrightnessChangedEventArgs : EventArgs
42     {
43         /// <summary>
44         /// Brightness indicates the current brightness level of the display as an integer.
45         /// </summary>
46         public int Brightness { get; internal set; }
47     }
48 }