NetworkControlTrait.LastNetworkUploadSpeedTest

class NetworkControlTrait.LastNetworkUploadSpeedTest : ClusterStruct


The results of the most recent network-upload speed test.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

LastNetworkUploadSpeedTest(
    unixTimestampSeconds: Long,
    uploadSpeedMbps: Float,
    status: NetworkControlTrait.SpeedTestStatus
)

Creates the LastNetworkUploadSpeedTest 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

NetworkControlTrait.SpeedTestStatus

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

Long

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

Float

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

Public constructors

LastNetworkUploadSpeedTest

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

Creates the LastNetworkUploadSpeedTest 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

status

val statusNetworkControlTrait.SpeedTestStatus

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

unixTimestampSeconds

val unixTimestampSecondsLong

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

uploadSpeedMbps

val uploadSpeedMbpsFloat

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