EnergyStats class

The result of a FRITZ!DECT 200 for a HTTP request: http://fritz.box/net/home_auto_query.lua ?sid=

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

EnergyStats({required int sumDay, required int sumMonth, required int sumYear, required String deviceId, required String deviceConnectState, required String deviceSwitchState, required TabType tabType, required String currentDateInSec, required bool requestResult, required EnergyStat energyStat})
const
EnergyStats.fromJson(Map<String, dynamic> json)
factory

Properties

currentDateInSec String
Current time in millis since epoch, e.g. "1672093500"
final
deviceConnectState String
The connection state of the device, where "2" means connected. Other states are unknown. TODO: What other states are possible? Example: "2"
final
deviceId String
Identifier for this FRITZ!DECT device that seems to be a fix id that does not change. Example: "17"
final
deviceSwitchState String
Example: "1"
final
energyStat EnergyStat
final
hashCode int
The hash code for this object.
no setterinherited
requestResult bool
TODO: Unclear what this boolean value means. true or false
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sumDay int
Example: 473
final
sumMonth int
Example: 14387
final
sumYear int
Example: 172645
final
tabType TabType
Values: {"hour", "24h", "week", "month", "2years"}
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited