FillCommands

@Generated(value = ["GoogleHomePlatformCodegen"])
interface FillCommands

Known direct subclasses
Fill

API for the Fill trait.


Summary

Public functions

suspend Unit
fill(fill: Boolean, fillLevel: String, fillPercent: Float)

Fill or drain the device.

BatchableCommand<Unit>
fillBatchable(fill: Boolean, fillLevel: String, fillPercent: Float)

The batchable version of fill command.

Public functions

fill

suspend fun fill(fill: Boolean, fillLevel: String, fillPercent: Float): Unit

Fill or drain the device.

Parameters
fill: Boolean

Set to true to fill, false to drain.

fillLevel: String

The levelName from the availableFillLevels attribute to set. If unspecified, fill to the default level.

fillPercent: Float

The requested level percentage.

fillBatchable

fun fillBatchable(fill: Boolean, fillLevel: String, fillPercent: Float): BatchableCommand<Unit>

The batchable version of fill command.

Fill or drain the device.

Parameters
fill: Boolean

Set to true to fill, false to drain.

fillLevel: String

The levelName from the availableFillLevels attribute to set. If unspecified, fill to the default level.

fillPercent: Float

The requested level percentage.

Returns
BatchableCommand<Unit>

BatchableCommand