-
Notifications
You must be signed in to change notification settings - Fork 0
/
Battery.cs
49 lines (44 loc) · 900 Bytes
/
Battery.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Copyright (C) Ehsan Haghpanah, 2010.
* All rights reserved.
* Ehsan Haghpanah, (github.com/ehsanhaghpanah)
*/
namespace sirius.GSM.IO
{
/// <summary>
/// Battery Charging Status
/// </summary>
public enum BatteryChargingStatus
{
Charging = 0,
NotCharging = 1,
Unknown = 2
}
/// <summary>
/// Battery
/// </summary>
public sealed class Battery
{
private readonly int _ChargeLevel;
private readonly BatteryChargingStatus _ChargingStatus;
internal Battery(int chargeLevel, BatteryChargingStatus chargingStatus)
{
_ChargeLevel = chargeLevel;
_ChargingStatus = chargingStatus;
}
/// <summary>
/// Charge Level
/// </summary>
public int ChargeLevel
{
get { return (_ChargeLevel); }
}
/// <summary>
/// Battery Charging Status
/// </summary>
public BatteryChargingStatus ChargingStatus
{
get { return (_ChargingStatus); }
}
}
}