Class AcCommandBuilder
- Namespace
- PanasonicComfortCloudClient
- Assembly
- PanasonicComfortCloudClient.dll
Builds the upstream AC convenience commands, including explicit optional automatic power-on.
public sealed class AcCommandBuilder
- Inheritance
-
AcCommandBuilder
- Inherited Members
Remarks
This is a mutable application-owned builder. Synchronize concurrent edits externally, as with the typed request models.
Constructors
AcCommandBuilder(AcSnapshot, bool)
Builds the upstream AC convenience commands, including explicit optional automatic power-on.
public AcCommandBuilder(AcSnapshot snapshot, bool autoPowerOn = true)
Parameters
snapshotAcSnapshotA recent snapshot of the device to control.
autoPowerOnboolWhether preference setters should add power-on, as upstream defaults; mode and iAUTO-X always request operation.
Remarks
This is a mutable application-owned builder. Synchronize concurrent edits externally, as with the typed request models.
Properties
HasChanges
Gets whether any command has been requested.
public bool HasChanges { get; }
Property Value
- bool
True after at least one setter has been called.
Methods
Build()
Creates an independent typed copy of the intended changes.
public AcUpdate Build()
Returns
- AcUpdate
The accumulated update; editing it does not change this builder.
SetEcoFunction(int)
Sets AI ECO without implicitly adding power-on.
public AcCommandBuilder SetEcoFunction(int value)
Parameters
valueintThe upstream AI ECO mode.
Returns
- AcCommandBuilder
This builder.
SetEcoMode(EcoMode)
Selects economy/output mode, optionally requesting power-on.
public AcCommandBuilder SetEcoMode(EcoMode value)
Parameters
valueEcoModeNormal, powerful or quiet.
Returns
- AcCommandBuilder
This builder.
SetEcoNavi(int)
Sets ECONAVI without implicitly adding power-on.
public AcCommandBuilder SetEcoNavi(int value)
Parameters
valueintThe upstream ECONAVI mode.
Returns
- AcCommandBuilder
This builder.
SetFanSpeed(FanSpeed)
Selects fan speed without implicitly adding power-on.
public AcCommandBuilder SetFanSpeed(FanSpeed value)
Parameters
valueFanSpeedThe desired speed.
Returns
- AcCommandBuilder
This builder.
SetHorizontalSwing(int)
Selects horizontal swing while preserving the other axis.
public AcCommandBuilder SetHorizontalSwing(int value)
Parameters
valueintThe upstream position value, or minus one for automatic.
Returns
- AcCommandBuilder
This builder.
SetIAutoX(int)
Sets iAUTO-X, selecting Auto when enabled and Cool otherwise, and explicitly requests operation.
public AcCommandBuilder SetIAutoX(int value)
Parameters
valueintThe upstream iAUTO-X value, two for on and one for off.
Returns
- AcCommandBuilder
This builder.
SetInsideCleaning(int)
Sets inside cleaning without implicitly adding power-on.
public AcCommandBuilder SetInsideCleaning(int value)
Parameters
valueintThe upstream inside-cleaning value.
Returns
- AcCommandBuilder
This builder.
SetMode(AcMode)
Selects an operating mode and explicitly requests power-on.
public AcCommandBuilder SetMode(AcMode value)
Parameters
valueAcModeThe operating mode.
Returns
- AcCommandBuilder
This builder.
SetNanoe(int)
Sets nanoe without implicitly adding power-on.
public AcCommandBuilder SetNanoe(int value)
Parameters
valueintThe upstream nanoe mode.
Returns
- AcCommandBuilder
This builder.
SetPower(PowerState)
Sets explicit power operation.
public AcCommandBuilder SetPower(PowerState value)
Parameters
valuePowerStateOff or on.
Returns
- AcCommandBuilder
This builder.
SetTargetTemperature(double)
Sets the target temperature, optionally requesting power-on.
public AcCommandBuilder SetTargetTemperature(double value)
Parameters
valuedoubleThe temperature in the device's unit.
Returns
- AcCommandBuilder
This builder.
SetVerticalSwing(int)
Selects vertical swing while preserving the other axis.
public AcCommandBuilder SetVerticalSwing(int value)
Parameters
valueintThe upstream position value, or minus one for automatic.
Returns
- AcCommandBuilder
This builder.
SetZoneDamper(int, int)
Sets one zone's damper level.
public AcCommandBuilder SetZoneDamper(int zoneId, int value)
Parameters
Returns
- AcCommandBuilder
This builder.
SetZonePower(int, PowerState)
Sets one zone's operation while retaining other changes queued in this builder.
public AcCommandBuilder SetZonePower(int zoneId, PowerState value)
Parameters
zoneIdintThe reported zone identifier.
valuePowerStateThe requested zone operation.
Returns
- AcCommandBuilder
This builder.