NetworkControlTrait.LastNetworkDownloadSpeedTest

class NetworkControlTrait.LastNetworkDownloadSpeedTest : ClusterStruct


Results of the most recent network-download speed test.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

LastNetworkDownloadSpeedTest(
    downloadSpeedMbps: Float,
    unixTimestampSeconds: Long,
    status: NetworkControlTrait.SpeedTestStatus
)

Creates the LastNetworkDownloadSpeedTest class.

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

Float

The download speed in megabits per second of the most recent network speed test.

NetworkControlTrait.SpeedTestStatus

Whether the most recent network-download speed test succeeded or failed.

Long

The Unix Epoch timestamp of when the most recent network-download speed test was run.

Public constructors

LastNetworkDownloadSpeedTest

LastNetworkDownloadSpeedTest(
    downloadSpeedMbps: Float = 0.0f,
    unixTimestampSeconds: Long = 0,
    status: NetworkControlTrait.SpeedTestStatus = SpeedTestStatus.Unspecified
)

Creates the LastNetworkDownloadSpeedTest class.

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

downloadSpeedMbps

val downloadSpeedMbpsFloat

The download speed in megabits per second of the most recent network speed test.

status

val statusNetworkControlTrait.SpeedTestStatus

Whether the most recent network-download speed test succeeded or failed.

unixTimestampSeconds

val unixTimestampSecondsLong

The Unix Epoch timestamp of when the most recent network-download speed test was run.