EnergyEvseTrait.GetTargetsCommand.Response

class EnergyEvseTrait.GetTargetsCommand.Response : ClusterStruct


The result of the GetTargets command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Response(
    chargingTargetSchedules: List<EnergyEvseTrait.ChargingTargetScheduleStruct>
)

Creates a response payload from the GetTargets command.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

List<EnergyEvseTrait.ChargingTargetScheduleStruct>

A list of up to seven sets of daily charging targets and their associated days of the week.

Public constructors

Response

Response(
    chargingTargetSchedules: List<EnergyEvseTrait.ChargingTargetScheduleStruct> = emptyList()
)

Creates a response payload from the GetTargets command.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

chargingTargetSchedules

val chargingTargetSchedulesList<EnergyEvseTrait.ChargingTargetScheduleStruct>

A list of up to seven sets of daily charging targets and their associated days of the week.