ClimateStateRequest.Builder


public final class ClimateStateRequest.Builder<T>


A builder of ClimateStateRequest

Parameters
<T>

data type of request value

Summary

Public constructors

Builder(int requestedFeature, T requestedValue)

Creates an instance of Builder.

Public methods

@NonNull ClimateStateRequest.Builder<T>

Adds CarZone into ClimateStateRequest.

@NonNull ClimateStateRequest<T>

Constructs a ClimateStateRequest defined by this builder

Public constructors

Builder

Added in 1.3.0
public Builder(int requestedFeature, T requestedValue)

Creates an instance of Builder.

Parameters
int requestedFeature

one of integer flags in ClimateProfileRequest.ClimateProfileFeature

T requestedValue

the requested value for the feature

Public methods

addCarZones

Added in 1.3.0
public @NonNull ClimateStateRequest.Builder<T> addCarZones(@NonNull CarZone carZone)

Adds CarZone into ClimateStateRequest.

Without calling this method, the request will contain CarZone#CAR_ZONE_GLOBAL.

Parameters
@NonNull CarZone carZone

the CarZone which the set operation will be applied

build

Added in 1.3.0
public @NonNull ClimateStateRequest<T> build()

Constructs a ClimateStateRequest defined by this builder