ExtendedBatteryStatus class
Constructors
-
ExtendedBatteryStatus({required BatteryStatus status, required BatteryHealth health, required BatteryCapacityLevel capacityLevel, required double temperature, required double voltage, required String technology, required bool present, required int cycleCount, required int chargingStatus, required int plugged, required int chargeCounter, required int level, required int scale, required bool batteryLow, required int seq, required int iconSmall, required int maxChargingVoltage, required int maxChargingCurrent, required int invalidCharger, required String deviceManufacturer, int? batteryUsageNumber, int? batteryErrorStatus, int? batteryType, int? batteryUsageDecommissionThreshold, String? zcmMode, int? shutdownLevel, bool? zcmEnabled, double? maxDischargeTempShutdownLevel, int? adjustShutdownLevel, int? lowLevel, int? ratedCapacity, DateTime? mfd, String? zcmExtra, int? baseCumulativeCharge, String? partNumber, int? criticalLevel, double? minDischargeTempShutdownLevel, String? serialNumber, int? batteryDecommission, int? totalCumulativeCharge, int? secondsSinceFirstUse, int? presentCapacity, int? healthPercentage, int? timeToEmpty, int? timeToFull, int? presentCharge, int? currentEvent, int? miscEvent, int? online, int? pogoPlugged, int? capacity, int? currentNow, int? chargeType, bool? hvCharger, bool? powerSharing, int? chargerType, double? minBatteryTemp, double? maxBatteryTemp, int? batteryPercentDecommissionThreshold, int? chargingDuration, int? timeSinceLastCharge, int? lastChargeLength, int? timeRemaining, int? rebootCount, int? deviceOffDuration, int? deviceOnDuration, int? timeSinceLastFullCharge, int? backupPowerType, bool? usbLiquidStatus, int? backupBatteryVoltage, bool? batterySwapping, Map<
String, dynamic> ? extraMap, String? intentLog}) -
ExtendedBatteryStatus.fromJson(Map<
String, dynamic> json) -
factory
Properties
- adjustShutdownLevel → int?
-
final
- backupBatteryVoltage → int?
-
final
- backupPowerType → int?
-
final
- baseCumulativeCharge → int?
-
final
- batteryDecommission → int?
-
final
- batteryDecommissionPercentageLeft → int?
-
no setter
- batteryDecommissionStatus → BatteryDecommissionStatus?
-
no setter
- batteryErrorStatus → int?
-
final
- batteryLow → bool
-
final
- batteryPercentage → int
-
no setter
- batteryPercentDecommissionThreshold → int?
-
final
- batterySwapping → bool?
-
final
- batteryType → int?
-
final
- batteryUsageDecommissionThreshold → int?
-
final
- batteryUsageNumber → int?
-
final
- calculatedBatteryUsage → int?
-
no setter
- capacity → int?
-
final
- capacityLevel → BatteryCapacityLevel
-
final
- chargeCounter → int
-
final
- chargerType → int?
-
final
- chargeType → int?
-
final
- chargingDuration → int?
-
final
- chargingStatus → int
-
final
- createdAt → DateTime
-
final
- criticalLevel → int?
-
final
- currentEvent → int?
-
final
- currentNow → int?
-
final
- cycleCount → int
-
final
- deviceManufacturer → String
-
final
- deviceOffDuration → int?
-
final
- deviceOnDuration → int?
-
final
-
extraMap
→ Map<
String, dynamic> ? -
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- health → BatteryHealth
-
final
- healthPercentage → int?
-
final
- hvCharger → bool?
-
final
- iconSmall → int
-
final
- intentLog → String?
-
final
- invalidCharger → int
-
final
- isHoneywell → bool
-
no setter
- isZebra → bool
-
no setter
- lastChargeLength → int?
-
final
- level → int
-
final
- lowLevel → int?
-
final
- maxBatteryTemp → double?
-
final
- maxChargingCurrent → int
-
final
- maxChargingVoltage → int
-
final
- maxDischargeTempShutdownLevel → double?
-
final
- mfd ↔ DateTime?
-
getter/setter pair
- minBatteryTemp → double?
-
final
- minDischargeTempShutdownLevel → double?
-
final
- miscEvent → int?
-
final
- online → int?
-
final
- partNumber → String?
-
final
- plugged → int
-
final
- pluggedStatus → BatteryPluggedStatus
-
no setter
- pogoPlugged → int?
-
final
- powerSharing → bool?
-
final
- present → bool
-
final
- presentCapacity → int?
-
final
- presentCharge → int?
-
final
- ratedCapacity → int?
-
final
- rebootCount → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → int
-
final
- secondsSinceFirstUse → int?
-
final
- seq → int
-
final
- serialNumber → String?
-
final
- shutdownLevel → int?
-
final
- status → BatteryStatus
-
final
- technology → String
-
final
- temperature → double
-
final
- timeRemaining → int?
-
final
- timeSinceLastCharge → int?
-
final
- timeSinceLastFullCharge → int?
-
final
- timeToEmpty → int?
-
final
- timeToFull → int?
-
final
- totalCumulativeCharge → int?
-
final
- usbLiquidStatus → bool?
-
final
- voltage → double
-
final
- zcmEnabled → bool?
-
final
- zcmExtra → String?
-
final
- zcmMode → String?
-
final
Methods
-
jsonEncoded(
{bool sendIntentLog = false}) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{bool sendIntentLog = true}) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
tryToCalculateBatteryDecommissionThreshold(
Map< String, dynamic> json) → int?