Méthode | Description | |
---|---|---|
CancelTimeout ( ) : void |
Cancels a timeout.
|
|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.Devices.Fireplace.FireplaceBase object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Devices.Fireplace.FireplaceBase. The Dispose method leaves the CyrusBuilt.MonoPi.Devices.Fireplace.FireplaceBase in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Devices.Fireplace.FireplaceBase so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Devices.Fireplace.FireplaceBase was occupying. |
|
Off ( ) : void |
Turns the fireplace off.
|
|
On ( ) : void |
Turns the fireplace on.
|
|
On ( double timeoutDelay, TimeUnit timeoutUnit ) : void |
Turns the fireplace on with the specified timeout. If the operation is not successful within the allotted time, the operation is cancelled for safety reasons.
|
|
SetTimeout ( double delay, TimeUnit unit ) : void |
Sets the timeout delay.
|
|
Shutdown ( ) : void |
Shutdown the fireplace.
|
Méthode | Description | |
---|---|---|
CancelTimeoutTask ( ) : void |
Cancels the timeout task (if running).
|
|
FireplaceBase ( ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Fireplace.FireplaceBase class. This is the default constructor.
|
|
OnOperationTimedOut ( |
Raises the operation timed out event.
|
|
OnPilotLightStateChanged ( |
Raises the pilot light state changed event.
|
|
OnStateChanged ( |
Raises the state changed event.
|
|
StartCancelTask ( ) : void |
Starts the cancel task. This will start a task that turns off
|
Méthode | Description | |
---|---|---|
InternalStateChangeHandler ( Object sender, |
An internal handler for the state change event.
|
public On ( double timeoutDelay, TimeUnit timeoutUnit ) : void | ||
timeoutDelay | double | /// The timeout delay. /// |
timeoutUnit | TimeUnit | /// The time unit of measure for the timeout. /// |
Résultat | void |
protected OnOperationTimedOut ( |
||
e | /// The event arguments. /// | |
Résultat | void |
protected OnPilotLightStateChanged ( |
||
e | /// The event arguments. /// | |
Résultat | void |
protected OnStateChanged ( |
||
e | /// The event arguments. /// | |
Résultat | void |
public SetTimeout ( double delay, TimeUnit unit ) : void | ||
delay | double | /// The timeout delay. /// |
unit | TimeUnit | /// The time unit of measure for the timeout. /// |
Résultat | void |