UnitTestingCommands

@Generated(value = ["GoogleHomePlatformCodegen"])
interface UnitTestingCommands

Known direct subclasses
UnitTesting

API for the UnitTesting trait.


Summary

Public functions

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.

Public functions

simpleStructEchoRequest

suspend fun simpleStructEchoRequest(arg1: UnitTestingTrait.SimpleStruct): UnitTestingTrait.SimpleStructEchoRequestCommand.Response

Unit test command.

Parameters
arg1: UnitTestingTrait.SimpleStruct

SimpleStruct argument.

test

suspend fun test(): Unit

Simple command without any parameters and without a specific response.

testAddArguments

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

Simple command that adds the two arguments passed to it.

Parameters
arg1: UByte

Unsigned 8-bit integer argument. The int8u attribute could be used for this.

arg2: UByte

Unsigned 8-bit integer argument.

testAddArgumentsBatchable

fun testAddArgumentsBatchable(arg1: UByte, arg2: UByte): BatchableCommand<UnitTestingTrait.TestAddArgumentsCommand.Response>

The batchable version of testAddArguments command.

Simple command that adds the two arguments passed to it.

Parameters
arg1: UByte

Unsigned 8-bit integer argument. The int8u attribute could be used for this.

arg2: UByte

Unsigned 8-bit integer argument.

testBatchHelperRequest

suspend fun testBatchHelperRequest(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
): UnitTestingTrait.TestBatchHelperRequestCommand.Response

testBatchHelperRequestBatchable

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

testBatchable

fun testBatchable(): BatchableCommand<Unit>

The batchable version of test command.

Simple command without any parameters and without a specific response.

Returns
BatchableCommand<Unit>

BatchableCommand

testComplexNullableOptionalRequest

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

Unit test command.

Parameters
nullableInt: UShort?

Unsigned 16-bit integer argument.

nullableString: String?

String argument.

nullableStruct: UnitTestingTrait.SimpleStruct?

SimpleStruct argument.

nullableList: List<UnitTestingTrait.SimpleEnum>?

SimpleEnum list argument.

optionalArgs: UnitTestingTrait.TestComplexNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

testComplexNullableOptionalRequestBatchable

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

The batchable version of testComplexNullableOptionalRequest command.

Unit test command.

Parameters
nullableInt: UShort?

Unsigned 16-bit integer argument.

nullableString: String?

String argument.

nullableStruct: UnitTestingTrait.SimpleStruct?

SimpleStruct argument.

nullableList: List<UnitTestingTrait.SimpleEnum>?

SimpleEnum list argument.

optionalArgs: UnitTestingTrait.TestComplexNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

testEmitTestEventRequest

suspend fun testEmitTestEventRequest(
    arg1: UByte,
    arg2: UnitTestingTrait.SimpleEnum,
    arg3: Boolean
): UnitTestingTrait.TestEmitTestEventRequestCommand.Response

Unit test command.

Parameters
arg1: UByte

Unsigned 8-bit integer argument.

arg2: UnitTestingTrait.SimpleEnum

SimpleEnum argument.

arg3: Boolean

Boolean argument.

testEmitTestEventRequestBatchable

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

The batchable version of testEmitTestEventRequest command.

Unit test command.

Parameters
arg1: UByte

Unsigned 8-bit integer argument.

arg2: UnitTestingTrait.SimpleEnum

SimpleEnum argument.

arg3: Boolean

Boolean argument.

testEmitTestFabricScopedEventRequest

suspend fun testEmitTestFabricScopedEventRequest(arg1: UByte): UnitTestingTrait.TestEmitTestFabricScopedEventRequestCommand.Response

Unit test command.

Parameters
arg1: UByte

Unsigned 8-bit integer argument.

testEmitTestFabricScopedEventRequestBatchable

fun testEmitTestFabricScopedEventRequestBatchable(arg1: UByte): BatchableCommand<UnitTestingTrait.TestEmitTestFabricScopedEventRequestCommand.Response>

The batchable version of testEmitTestFabricScopedEventRequest command.

Unit test command.

Parameters
arg1: UByte

Unsigned 8-bit integer argument.

testEnumsRequest

suspend fun testEnumsRequest(arg1: UShort, arg2: UnitTestingTrait.SimpleEnum): UnitTestingTrait.TestEnumsRequestCommand.Response

Unit test command.

Parameters
arg1: UShort

Unsigned 16-bit integer argument.

arg2: UnitTestingTrait.SimpleEnum

SimpleEnum argument.

testEnumsRequestBatchable

fun testEnumsRequestBatchable(
    arg1: UShort,
    arg2: UnitTestingTrait.SimpleEnum
): BatchableCommand<UnitTestingTrait.TestEnumsRequestCommand.Response>

The batchable version of testEnumsRequest command.

Unit test command.

Parameters
arg1: UShort

Unsigned 16-bit integer argument.

arg2: UnitTestingTrait.SimpleEnum

SimpleEnum argument.

testListInt8UArgumentRequest

suspend fun testListInt8UArgumentRequest(arg1: List<UByte>): UnitTestingTrait.TestListInt8UArgumentRequestCommand.Response

Unit test command.

Parameters
arg1: List<UByte>

Unsigned 8-bit integer list argument.

testListInt8UArgumentRequestBatchable

fun testListInt8UArgumentRequestBatchable(arg1: List<UByte>): BatchableCommand<UnitTestingTrait.TestListInt8UArgumentRequestCommand.Response>

The batchable version of testListInt8UArgumentRequest command.

Unit test command.

Parameters
arg1: List<UByte>

Unsigned 8-bit integer list argument.

testListInt8UReverseRequest

suspend fun testListInt8UReverseRequest(arg1: List<UByte>): UnitTestingTrait.TestListInt8UReverseRequestCommand.Response

Unit test command.

Parameters
arg1: List<UByte>

Unsigned 8-bit integer list argument.

testListInt8UReverseRequestBatchable

fun testListInt8UReverseRequestBatchable(arg1: List<UByte>): BatchableCommand<UnitTestingTrait.TestListInt8UReverseRequestCommand.Response>

The batchable version of testListInt8UReverseRequest command.

Unit test command.

Parameters
arg1: List<UByte>

Unsigned 8-bit integer list argument.

testListStructArgumentRequest

suspend fun testListStructArgumentRequest(
    arg1: List<UnitTestingTrait.SimpleStruct>
): UnitTestingTrait.TestListStructArgumentRequestCommand.Response

Unit test command.

Parameters
arg1: List<UnitTestingTrait.SimpleStruct>

SimpleStruct list argument.

testNotHandled

suspend fun testNotHandled(): Unit

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

testNotHandledBatchable

fun testNotHandledBatchable(): BatchableCommand<Unit>

The batchable version of testNotHandled command.

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

Returns
BatchableCommand<Unit>

BatchableCommand

testNullableOptionalRequest

suspend fun testNullableOptionalRequest(optionalArgs: UnitTestingTrait.TestNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}): UnitTestingTrait.TestNullableOptionalRequestCommand.Response

Unit test command.

Parameters
optionalArgs: UnitTestingTrait.TestNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

testNullableOptionalRequestBatchable

fun testNullableOptionalRequestBatchable(optionalArgs: UnitTestingTrait.TestNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<UnitTestingTrait.TestNullableOptionalRequestCommand.Response>

The batchable version of testNullableOptionalRequest command.

Unit test command.

Parameters
optionalArgs: UnitTestingTrait.TestNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

testSecondBatchHelperRequest

suspend fun testSecondBatchHelperRequest(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
): UnitTestingTrait.TestSecondBatchHelperRequestCommand.Response

testSecondBatchHelperRequestBatchable

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

testSimpleArgumentRequest

suspend fun testSimpleArgumentRequest(arg1: Boolean): UnitTestingTrait.TestSimpleArgumentRequestCommand.Response

Command that takes a boolean argument.

Parameters
arg1: Boolean

Boolean argument.

testSimpleArgumentRequestBatchable

fun testSimpleArgumentRequestBatchable(arg1: Boolean): BatchableCommand<UnitTestingTrait.TestSimpleArgumentRequestCommand.Response>

The batchable version of testSimpleArgumentRequest command.

Command that takes a boolean argument.

Parameters
arg1: Boolean

Boolean argument.

testSimpleOptionalArgumentRequest

suspend fun testSimpleOptionalArgumentRequest(optionalArgs: UnitTestingTrait.TestSimpleOptionalArgumentRequestCommand.OptionalArgs.() -> Unit = {}): Unit

Unit test command.

Parameters
optionalArgs: UnitTestingTrait.TestSimpleOptionalArgumentRequestCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

testSimpleOptionalArgumentRequestBatchable

fun testSimpleOptionalArgumentRequestBatchable(optionalArgs: UnitTestingTrait.TestSimpleOptionalArgumentRequestCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<Unit>

The batchable version of testSimpleOptionalArgumentRequest command.

Unit test command.

Parameters
optionalArgs: UnitTestingTrait.TestSimpleOptionalArgumentRequestCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

Returns
BatchableCommand<Unit>

BatchableCommand

testSpecific

suspend fun testSpecific(): UnitTestingTrait.TestSpecificCommand.Response

Simple command without any parameters and with a specific response.

testSpecificBatchable

fun testSpecificBatchable(): BatchableCommand<UnitTestingTrait.TestSpecificCommand.Response>

The batchable version of testSpecific command.

Simple command without any parameters and with a specific response.

testStructArgumentRequest

suspend fun testStructArgumentRequest(arg1: UnitTestingTrait.SimpleStruct): UnitTestingTrait.TestStructArgumentRequestCommand.Response

Unit test command.

Parameters
arg1: UnitTestingTrait.SimpleStruct

SimpleStruct argument.

testStructArrayArgumentRequest

suspend fun testStructArrayArgumentRequest(
    arg1: List<UnitTestingTrait.NestedStructList>,
    arg2: List<UnitTestingTrait.SimpleStruct>,
    arg3: List<UnitTestingTrait.SimpleEnum>,
    arg4: List<Boolean>,
    arg5: UnitTestingTrait.SimpleEnum,
    arg6: Boolean
): UnitTestingTrait.TestStructArrayArgumentRequestCommand.Response

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

Parameters
arg1: List<UnitTestingTrait.NestedStructList>

NestedStructList list argument.

arg2: List<UnitTestingTrait.SimpleStruct>

SimpleStruct list argument.

arg3: List<UnitTestingTrait.SimpleEnum>

SimpleEnum list argument.

arg4: List<Boolean>

boolean list argument.

arg5: UnitTestingTrait.SimpleEnum

SimpleEnum argument.

arg6: Boolean

Boolean argument.

testStructArrayArgumentRequestBatchable

fun testStructArrayArgumentRequestBatchable(
    arg1: List<UnitTestingTrait.NestedStructList>,
    arg2: List<UnitTestingTrait.SimpleStruct>,
    arg3: List<UnitTestingTrait.SimpleEnum>,
    arg4: List<Boolean>,
    arg5: UnitTestingTrait.SimpleEnum,
    arg6: Boolean
): BatchableCommand<UnitTestingTrait.TestStructArrayArgumentRequestCommand.Response>

The batchable version of testStructArrayArgumentRequest command.

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

Parameters
arg1: List<UnitTestingTrait.NestedStructList>

NestedStructList list argument.

arg2: List<UnitTestingTrait.SimpleStruct>

SimpleStruct list argument.

arg3: List<UnitTestingTrait.SimpleEnum>

SimpleEnum list argument.

arg4: List<Boolean>

boolean list argument.

arg5: UnitTestingTrait.SimpleEnum

SimpleEnum argument.

arg6: Boolean

Boolean argument.

testUnknownCommand

suspend fun testUnknownCommand(): Unit

Simple command that should not be added to the server.

testUnknownCommandBatchable

fun testUnknownCommandBatchable(): BatchableCommand<Unit>

The batchable version of testUnknownCommand command.

Simple command that should not be added to the server.

Returns
BatchableCommand<Unit>

BatchableCommand

timedInvokeRequest

suspend fun timedInvokeRequest(): Unit

TimedInvokeRequest command

timedInvokeRequestBatchable

fun timedInvokeRequestBatchable(): BatchableCommand<Unit>

The batchable version of timedInvokeRequest command.

TimedInvokeRequest command

Returns
BatchableCommand<Unit>

BatchableCommand