DeviceOven class
- Inheritance
-
- Object
- HomeDevice
- DeviceOven
Constructors
-
DeviceOven(HomeConnectApi api, DeviceInfo info, List<
ProgramOptions> options, List<DeviceStatus> status, List<DeviceProgram> programs, List<DeviceSetting> settings) - DeviceOven.fromInfoPayload(HomeConnectApi api, DeviceInfo info)
-
factory
-
DeviceOven.fromPayload(HomeConnectApi api, DeviceInfo info, List<
ProgramOptions> options, List<DeviceStatus> stats, List<DeviceProgram> programs, List<DeviceSetting> settings) -
factory
Properties
- api → HomeConnectApi
-
finalinherited
- deviceHaId → String
-
no setterinherited
- deviceName → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → DeviceInfo
-
finalinherited
-
programs
↔ List<
DeviceProgram> -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedProgram ↔ DeviceProgram?
-
getter/setter pairinherited
-
settings
↔ List<
DeviceSetting> -
getter/setter pairinherited
-
status
↔ List<
DeviceStatus> -
getter/setter pairinherited
Methods
-
addStatus(
DeviceStatus stat) → dynamic -
inherited
-
getPrograms(
) → Future< List< DeviceProgram> > -
Gets the list of programs available for the selected home appliance
inherited
-
getSelectedProgram(
) → Future< DeviceProgram> -
inherited
-
getSelectedProgramOptions(
) → Future< List< ProgramOptions> > -
inherited
-
getSettings(
) → Future< List< DeviceSetting> > -
inherited
-
getStatus(
) → Future< List< DeviceStatus> > -
inherited
-
init(
) → Future< HomeDevice> -
Initializes the device
inherited
-
isDeviceReady(
) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
selectProgram(
{required String programKey}) → Future< void> -
Selects a program to run on the selected home appliance
programKey
- the key of the program to select Trhows generic exception if the request fails.inherited -
setDuration(
{required int duration}) → Future< void> -
setTemperature(
{required int temperature}) → Future< void> -
startBasicOvenProgram(
{String? programKey}) → Future< void> - Starts the selected program
-
startListening(
) → Future< void> -
Starts listening for events from the selected home appliance
inherited
-
startProgram(
{String? programKey, List< ProgramOptions> options = const []}) → Future<void> -
Starts the selected program
inherited
-
stopListening(
) → Future< void> -
Stops listening for events from the selected home appliance
inherited
-
stopProgram(
) → Future< void> -
Stops the currently running program
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
turnOff(
) → void -
Sets the OvenSettings.power enum to
off
override -
turnOn(
) → void -
Sets the OvenSettings.power enum to
on
override -
updateSettingsFromEvent(
{required List< DeviceEvent> eventData}) → void -
inherited
-
updateStatusFromEvent(
{required List< DeviceEvent> eventData}) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited