PowerSourceTrait.Feature

data class PowerSourceTrait.Feature


PowerSource trait FeatureMap.

Summary

Public constructors

Feature(
    wired: Boolean,
    battery: Boolean,
    rechargeable: Boolean,
    replaceable: Boolean
)

Creates the Feature data class.

Public functions

open ULong

Convert this ClusterBitmap to raw (bytes) format

Public properties

Boolean

The power source is a battery.

Boolean

The power source is a rechargeable battery.

Boolean

The power source is a replaceable battery.

Boolean

The power source is hard-wired.

Public constructors

Feature

Feature(
    wired: Boolean = false,
    battery: Boolean = false,
    rechargeable: Boolean = false,
    replaceable: Boolean = false
)

Creates the Feature data class.

Public functions

toRaw

open fun toRaw(): ULong

Convert this ClusterBitmap to raw (bytes) format

Public properties

battery

val batteryBoolean

The power source is a battery.

rechargeable

val rechargeableBoolean

The power source is a rechargeable battery.

replaceable

val replaceableBoolean

The power source is a replaceable battery.

wired

val wiredBoolean

The power source is hard-wired.