UnitTestingTrait.TestStructArrayArgumentRequestCommand.Request

class UnitTestingTrait.TestStructArrayArgumentRequestCommand.Request : ClusterStruct


The request payload for the TestStructArrayArgumentRequest command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(
    arg1: List<UnitTestingTrait.NestedStructList>,
    arg2: List<UnitTestingTrait.SimpleStruct>,
    arg3: List<UnitTestingTrait.SimpleEnum>,
    arg4: List<Boolean>,
    arg5: UnitTestingTrait.SimpleEnum,
    arg6: Boolean
)

Creates a request payload for the TestStructArrayArgumentRequest 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 constructors

Request

Request(
    arg1: List<UnitTestingTrait.NestedStructList> = emptyList(),
    arg2: List<UnitTestingTrait.SimpleStruct> = emptyList(),
    arg3: List<UnitTestingTrait.SimpleEnum> = emptyList(),
    arg4: List<Boolean> = emptyList(),
    arg5: UnitTestingTrait.SimpleEnum = SimpleEnum.Unspecified,
    arg6: Boolean = false
)

Creates a request payload for the TestStructArrayArgumentRequest 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

arg2

val arg2List<UnitTestingTrait.SimpleStruct>

SimpleStruct list argument.

arg3

val arg3List<UnitTestingTrait.SimpleEnum>

SimpleEnum list argument.

arg4

val arg4List<Boolean>

boolean list argument.

arg6

val arg6Boolean

Boolean argument.