NetworkControlTrait.TestNetworkSpeedCommand.Request

class NetworkControlTrait.TestNetworkSpeedCommand.Request : ClusterStruct


The request payload for the TestNetworkSpeed command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(testUploadSpeed: Boolean, testDownloadSpeed: Boolean)

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

Boolean

Whether the download speed should be tested.

Boolean

Whether the upload speed should be tested.

Public constructors

Request

Request(testUploadSpeed: Boolean = false, testDownloadSpeed: Boolean = false)

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

testDownloadSpeed

val testDownloadSpeedBoolean

Whether the download speed should be tested.

testUploadSpeed

val testUploadSpeedBoolean

Whether the upload speed should be tested.