DispenseTrait.Amount

class DispenseTrait.Amount : ClusterStruct


The available dispensible item amounts.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

Amount(amount: Float, unit: DispenseTrait.Unit)

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

Amount of specified unit.

DispenseTrait.Unit

Unit for the amount.

Public constructors

Amount

Amount(amount: Float = 0.0f, unit: DispenseTrait.Unit = Unit.Unspecified)

Creates the Amount class.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

amount

val amountFloat

Amount of specified unit.

unit

val unitDispenseTrait.Unit

Unit for the amount. Valid values are defined in Unit.