UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Request

class UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Request : ClusterStruct


The request payload for the TestComplexNullableOptionalRequest command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(
    nullableInt: UShort?,
    optionalInt: OptionalValue<UShort>,
    nullableOptionalInt: OptionalValue<UShort?>,
    nullableString: String?,
    optionalString: OptionalValue<String>,
    nullableOptionalString: OptionalValue<String?>,
    nullableStruct: UnitTestingTrait.SimpleStruct?,
    optionalStruct: OptionalValue<UnitTestingTrait.SimpleStruct>,
    nullableOptionalStruct: OptionalValue<UnitTestingTrait.SimpleStruct?>,
    nullableList: List<UnitTestingTrait.SimpleEnum>?,
    optionalList: OptionalValue<List<UnitTestingTrait.SimpleEnum>>,
    nullableOptionalList: OptionalValue<List<UnitTestingTrait.SimpleEnum>?>
)

Creates a request payload for the TestComplexNullableOptionalRequest 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(
    nullableInt: UShort? = null,
    optionalInt: OptionalValue<UShort> = OptionalValue.absent(),
    nullableOptionalInt: OptionalValue<UShort?> = OptionalValue.absent(),
    nullableString: String? = null,
    optionalString: OptionalValue<String> = OptionalValue.absent(),
    nullableOptionalString: OptionalValue<String?> = OptionalValue.absent(),
    nullableStruct: UnitTestingTrait.SimpleStruct? = null,
    optionalStruct: OptionalValue<UnitTestingTrait.SimpleStruct> = OptionalValue.absent(),
    nullableOptionalStruct: OptionalValue<UnitTestingTrait.SimpleStruct?> = OptionalValue.absent(),
    nullableList: List<UnitTestingTrait.SimpleEnum>? = null,
    optionalList: OptionalValue<List<UnitTestingTrait.SimpleEnum>> = OptionalValue.absent(),
    nullableOptionalList: OptionalValue<List<UnitTestingTrait.SimpleEnum>?> = OptionalValue.absent()
)

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

nullableInt

val nullableIntUShort?

Unsigned 16-bit integer argument.

nullableList

val nullableListList<UnitTestingTrait.SimpleEnum>?

SimpleEnum list argument.

nullableOptionalInt

val nullableOptionalIntOptionalValue<UShort?>

Unsigned 16-bit integer argument.

nullableOptionalString

val nullableOptionalStringOptionalValue<String?>

String argument.

nullableString

val nullableStringString?

String argument.

nullableStruct

val nullableStructUnitTestingTrait.SimpleStruct?

SimpleStruct argument.

optionalInt

val optionalIntOptionalValue<UShort>

Unsigned 16-bit integer argument.

optionalString

val optionalStringOptionalValue<String>

String argument.