Ejemplo n.º 1
0
 public DevicePower(PowerChargeLevel powerLevel, DateTime remainingCharge)
 {
     RemainingChargeTime = remainingCharge;
     PowerLevel          = powerLevel;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Serialization constructor used for deserialization
 /// </summary>
 /// <param name="info">The serialization info</param>
 /// <param name="context">The context of the stream</param>
 protected DevicePower(SerializationInfo info, StreamingContext context)
 {
     RemainingChargeTime = (Nullable <DateTime>)info.GetValue("RemainingChargeTime", typeof(Nullable <DateTime>));
     PowerLevel          = (PowerChargeLevel)info.GetValue("PowerLevel", typeof(PowerChargeLevel));
 }
Ejemplo n.º 3
0
 public DevicePower()
 {
     RemainingChargeTime = null;
     PowerLevel          = PowerChargeLevel.Unknown;
 }