# BatchableCommand

# BatchableCommand


```
@HomeExperimentalApi
class BatchableCommand<RESPONSE : Any?> : Batchable
```

<br />

*** ** * ** ***

Represents a command that can be batched with other commands.

## Summary

| ### Public constructors |
|---|
| `<RESPONSE : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?> https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand#BatchableCommand(com.google.nest.platform.mesh.interaction.ObjectCommand,com.google.home.matter.serialization.StructAdapter)( objectCommand: ObjectCommand, responseAdapter: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/StructAdapter<RESPONSE>? )` |

| ### Public properties |
|---|---|
| `ObjectCommand` | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand#objectCommand()` The request object with payload |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/StructAdapter<RESPONSE>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand#responseAdapter()` The adapter to deserialize the response |

## Public constructors

### BatchableCommand

```
<RESPONSE : Any?> BatchableCommand(
    objectCommand: ObjectCommand,
    responseAdapter: StructAdapter<RESPONSE>? = null
)
```

## Public properties

### objectCommand

```
val objectCommand: ObjectCommand
```

The request object with payload

### responseAdapter

```
val responseAdapter: StructAdapter<RESPONSE>?
```

The adapter to deserialize the response