UnitTesting

@Generated(value = ["GoogleHomePlatformCodegen"])
interface UnitTesting : UnitTestingTrait.Attributes, MatterTrait, Updatable, UnitTestingCommands


API for the UnitTesting trait. A cluster used for testing purposes.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public functions

Boolean
Boolean

Public properties

open TraitFactory<UnitTesting>

Inherited functions

From com.google.home.TraitStateInvalidation
suspend Unit
From com.google.home.matter.standard.UnitTestingCommands
suspend UnitTestingTrait.SimpleStructEchoRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.SimpleStructEchoRequestCommand.Response>

The batchable version of simpleStructEchoRequest command.

suspend Unit

Simple command without any parameters and without a specific response.

suspend UnitTestingTrait.TestAddArgumentsCommand.Response
testAddArguments(arg1: UByte, arg2: UByte)

Simple command that adds the two arguments passed to it.

BatchableCommand<UnitTestingTrait.TestAddArgumentsCommand.Response>

The batchable version of testAddArguments command.

suspend UnitTestingTrait.TestBatchHelperRequestCommand.Response
testBatchHelperRequest(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
)
BatchableCommand<UnitTestingTrait.TestBatchHelperRequestCommand.Response>
testBatchHelperRequestBatchable(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
)
BatchableCommand<Unit>

The batchable version of test command.

suspend UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response
testComplexNullableOptionalRequest(
    nullableInt: UShort?,
    nullableString: String?,
    nullableStruct: UnitTestingTrait.SimpleStruct?,
    nullableList: List<UnitTestingTrait.SimpleEnum>?,
    optionalArgs: UnitTestingTrait.TestComplexNullableOptionalRequestCommand.OptionalArgs.() -> Unit
)

Unit test command.

BatchableCommand<UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response>
testComplexNullableOptionalRequestBatchable(
    nullableInt: UShort?,
    nullableString: String?,
    nullableStruct: UnitTestingTrait.SimpleStruct?,
    nullableList: List<UnitTestingTrait.SimpleEnum>?,
    optionalArgs: UnitTestingTrait.TestComplexNullableOptionalRequestCommand.OptionalArgs.() -> Unit
)

The batchable version of testComplexNullableOptionalRequest command.

suspend UnitTestingTrait.TestDifferentVendorMeiRequestCommand.Response
BatchableCommand<UnitTestingTrait.TestDifferentVendorMeiRequestCommand.Response>
suspend UnitTestingTrait.TestEmitTestEventRequestCommand.Response
testEmitTestEventRequest(
    arg1: UByte,
    arg2: UnitTestingTrait.SimpleEnum,
    arg3: Boolean
)

Unit test command.

BatchableCommand<UnitTestingTrait.TestEmitTestEventRequestCommand.Response>
testEmitTestEventRequestBatchable(
    arg1: UByte,
    arg2: UnitTestingTrait.SimpleEnum,
    arg3: Boolean
)

The batchable version of testEmitTestEventRequest command.

suspend UnitTestingTrait.TestEmitTestFabricScopedEventRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestEmitTestFabricScopedEventRequestCommand.Response>

The batchable version of testEmitTestFabricScopedEventRequest command.

suspend UnitTestingTrait.TestEnumsRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestEnumsRequestCommand.Response>

The batchable version of testEnumsRequest command.

suspend UnitTestingTrait.TestListInt8UArgumentRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestListInt8UArgumentRequestCommand.Response>

The batchable version of testListInt8UArgumentRequest command.

suspend UnitTestingTrait.TestListInt8UReverseRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestListInt8UReverseRequestCommand.Response>

The batchable version of testListInt8UReverseRequest command.

suspend UnitTestingTrait.TestListNestedStructListArgumentRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestListNestedStructListArgumentRequestCommand.Response>

The batchable version of testListNestedStructListArgumentRequest command.

suspend UnitTestingTrait.TestListStructArgumentRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestListStructArgumentRequestCommand.Response>

The batchable version of testListStructArgumentRequest command.

suspend UnitTestingTrait.TestNestedStructArgumentRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestNestedStructArgumentRequestCommand.Response>

The batchable version of testNestedStructArgumentRequest command.

suspend UnitTestingTrait.TestNestedStructListArgumentRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestNestedStructListArgumentRequestCommand.Response>

The batchable version of testNestedStructListArgumentRequest command.

suspend Unit

Simple command without any parameters and without a specific response not handled by the server.

BatchableCommand<Unit>

The batchable version of testNotHandled command.

suspend UnitTestingTrait.TestNullableOptionalRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestNullableOptionalRequestCommand.Response>

The batchable version of testNullableOptionalRequest command.

suspend UnitTestingTrait.TestSecondBatchHelperRequestCommand.Response
testSecondBatchHelperRequest(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
)
BatchableCommand<UnitTestingTrait.TestSecondBatchHelperRequestCommand.Response>
testSecondBatchHelperRequestBatchable(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
)
suspend UnitTestingTrait.TestSimpleArgumentRequestCommand.Response

Command that takes a boolean argument.

BatchableCommand<UnitTestingTrait.TestSimpleArgumentRequestCommand.Response>

The batchable version of testSimpleArgumentRequest command.

suspend Unit

Unit test command.

BatchableCommand<Unit>

The batchable version of testSimpleOptionalArgumentRequest command.

suspend UnitTestingTrait.TestSpecificCommand.Response

Simple command without any parameters and with a specific response.

BatchableCommand<UnitTestingTrait.TestSpecificCommand.Response>

The batchable version of testSpecific command.

suspend UnitTestingTrait.TestStructArgumentRequestCommand.Response

Unit test command.

BatchableCommand<UnitTestingTrait.TestStructArgumentRequestCommand.Response>

The batchable version of testStructArgumentRequest command.

suspend UnitTestingTrait.TestStructArrayArgumentRequestCommand.Response

Command that takes various arguments that are arrays, including an array of structs which have a list member.

BatchableCommand<UnitTestingTrait.TestStructArrayArgumentRequestCommand.Response>

The batchable version of testStructArrayArgumentRequest command.

suspend Unit

Simple command that should not be added to the server.

BatchableCommand<Unit>

The batchable version of testUnknownCommand command.

suspend Unit

TimedInvokeRequest command

BatchableCommand<Unit>

The batchable version of timedInvokeRequest command.

From com.google.home.Updatable
suspend UnitTesting
update(optimisticReturn: (UnitTesting) -> Unit, init: UnitTestingTrait.MutableAttributes.() -> Unit)

Creates a mutable copy of an object and calls the given function to mutate it, then saves it and returns a new immutable copy with the updated state.

Inherited properties

From com.google.home.Trait
From com.google.home.matter.standard.UnitTestingTrait.Attributes
List<UInt>

A list of client-generated commands which are supported by this cluster server instance.

List<UInt>

A list of the attribute IDs of the attributes supported by the cluster instance.

UnitTestingTrait.Bitmap16MaskMap?

bitmap16 attribute.

UnitTestingTrait.Bitmap32MaskMap?

bitmap32 attribute.

UnitTestingTrait.Bitmap64MaskMap?

bitmap64 attribute.

UnitTestingTrait.Bitmap8MaskMap?

bitmap8 attribute.

Boolean?

boolean attribute.

String?

charString attribute.

Boolean?

clusterErrorBoolean attribute.

UShort

The revision of the server cluster specification supported by the cluster instance.

UShort?

enum16 attribute.

UByte?

enum8 attribute.

UnitTestingTrait.SimpleEnum?

enumAttr attribute.

UInt?

epochS attribute.

ULong?

epochUs attribute.

UInt

Whether the server supports zero or more optional cluster features.

Double?

floatDouble attribute.

Float?

floatSingle attribute.

Boolean?

generalErrorBoolean attribute.

List<UInt>

A list of server-generated commands (server to client) which are supported by this cluster server instance.

Short?

int16s attribute.

UShort?

int16u attribute.

Int?

int24s attribute.

UInt?

int24u attribute.

Int?

int32s attribute.

UInt?

int32u attribute.

Long?

int40s attribute.

ULong?

int40u attribute.

Long?

int48s attribute.

ULong?

int48u attribute.

Long?

int56s attribute.

ULong?

int56u attribute.

Long?

int64s attribute.

ULong?

int64u attribute.

Byte?

int8s attribute.

UByte?

int8u attribute.

List<UnitTestingTrait.TestFabricScoped>?

listFabricScoped attribute.

List<UByte>?

listInt8u attribute.

List<ByteArray>?

listLongOctetString attribute.

List<UnitTestingTrait.NullablesAndOptionalsStruct>?

listNullablesAndOptionalsStruct attribute.

List<ByteArray>?

listOctetString attribute.

List<UnitTestingTrait.TestListStructOctet>?

listStructOctetString attribute.

String?

longCharString attribute.

ByteArray?

longOctetString attribute.

UByte?
UnitTestingTrait.Bitmap16MaskMap?

nullableBitmap16 attribute.

UnitTestingTrait.Bitmap32MaskMap?

nullableBitmap32 attribute.

UnitTestingTrait.Bitmap64MaskMap?

nullableBitmap64 attribute.

UnitTestingTrait.Bitmap8MaskMap?

nullableBitmap8 attribute.

Boolean?

nullableBoolean attribute.

String?

nullableCharString attribute.

UShort?

nullableEnum16 attribute.

UByte?

nullableEnum8 attribute.

UnitTestingTrait.SimpleEnum?

nullableEnumAttr attribute.

Double?

nullableFloatDouble attribute.

Float?

nullableFloatSingle attribute.

Short?

nullableInt16s attribute.

UShort?

nullableInt16u attribute.

Int?

nullableInt24s attribute.

UInt?

nullableInt24u attribute.

Int?

nullableInt32s attribute.

UInt?

nullableInt32u attribute.

Long?

nullableInt40s attribute.

ULong?

nullableInt40u attribute.

Long?

nullableInt48s attribute.

ULong?

nullableInt48u attribute.

Long?

nullableInt56s attribute.

ULong?

nullableInt56u attribute.

Long?

nullableInt64s attribute.

ULong?

nullableInt64u attribute.

Byte?

nullableInt8s attribute.

UByte?

nullableInt8u attribute.

ByteArray?

nullableOctetString attribute.

Short?

nullableRangeRestrictedInt16s attribute.

UShort?

nullableRangeRestrictedInt16u attribute.

Byte?

nullableRangeRestrictedInt8s attribute.

UByte?

nullableRangeRestrictedInt8u attribute.

UnitTestingTrait.SimpleStruct?

nullableStruct attribute.

ByteArray?

octetString attribute.

Short?

rangeRestrictedInt16s attribute.

UShort?

rangeRestrictedInt16u attribute.

Byte?

rangeRestrictedInt8s attribute.

UByte?

rangeRestrictedInt8u attribute.

UnitTestingTrait.SimpleStruct?

structAttr attribute.

Boolean?

timedWriteBoolean attribute.

Boolean?

unsupported attribute.

UShort?

vendorId attribute.

UByte?

writeOnlyInt8u attribute.

Public functions

supports

fun supports(attribute: UnitTesting.Attribute): Boolean

supports

fun supports(command: UnitTesting.Command): Boolean

Public properties

factory

open val factoryTraitFactory<UnitTesting>