Table of Contents

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

snapshot AcSnapshot

A recent snapshot of the device to control.

autoPowerOn bool

Whether 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

value int

The upstream AI ECO mode.

Returns

AcCommandBuilder

This builder.

SetEcoMode(EcoMode)

Selects economy/output mode, optionally requesting power-on.

public AcCommandBuilder SetEcoMode(EcoMode value)

Parameters

value EcoMode

Normal, powerful or quiet.

Returns

AcCommandBuilder

This builder.

SetEcoNavi(int)

Sets ECONAVI without implicitly adding power-on.

public AcCommandBuilder SetEcoNavi(int value)

Parameters

value int

The upstream ECONAVI mode.

Returns

AcCommandBuilder

This builder.

SetFanSpeed(FanSpeed)

Selects fan speed without implicitly adding power-on.

public AcCommandBuilder SetFanSpeed(FanSpeed value)

Parameters

value FanSpeed

The desired speed.

Returns

AcCommandBuilder

This builder.

SetHorizontalSwing(int)

Selects horizontal swing while preserving the other axis.

public AcCommandBuilder SetHorizontalSwing(int value)

Parameters

value int

The 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

value int

The 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

value int

The 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

value AcMode

The operating mode.

Returns

AcCommandBuilder

This builder.

SetNanoe(int)

Sets nanoe without implicitly adding power-on.

public AcCommandBuilder SetNanoe(int value)

Parameters

value int

The upstream nanoe mode.

Returns

AcCommandBuilder

This builder.

SetPower(PowerState)

Sets explicit power operation.

public AcCommandBuilder SetPower(PowerState value)

Parameters

value PowerState

Off or on.

Returns

AcCommandBuilder

This builder.

SetTargetTemperature(double)

Sets the target temperature, optionally requesting power-on.

public AcCommandBuilder SetTargetTemperature(double value)

Parameters

value double

The 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

value int

The 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

zoneId int

The reported zone identifier.

value int

The requested damper level.

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

zoneId int

The reported zone identifier.

value PowerState

The requested zone operation.

Returns

AcCommandBuilder

This builder.