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

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

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

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

Public properties

nullableInt

val nullableInt: UShort?

Unsigned 16-bit integer argument.

nullableList

val nullableList: List<UnitTestingTrait.SimpleEnum>?

SimpleEnum list argument.

nullableOptionalInt

val nullableOptionalInt: OptionalValue<UShort?>

Unsigned 16-bit integer argument.

nullableOptionalString

val nullableOptionalString: OptionalValue<String?>

String argument.

nullableString

val nullableString: String?

String argument.

nullableStruct

val nullableStruct: UnitTestingTrait.SimpleStruct?

SimpleStruct argument.

optionalInt

val optionalInt: OptionalValue<UShort>

Unsigned 16-bit integer argument.

optionalString

val optionalString: OptionalValue<String>

String argument.