# KeypadInputTrait.SendKeyCommand.Response

# KeypadInputTrait.SendKeyCommand.Response


```
class KeypadInputTrait.SendKeyCommand.Response : ClusterStruct
```

<br />

*** ** * ** ***

The result of the `SendKey` command.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.SendKeyCommand.Response.CommandFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this command's response fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.SendKeyCommand.Response#Response(com.google.home.matter.standard.KeypadInputTrait.StatusEnum)(status: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.StatusEnum)` Creates a response payload from the SendKey command. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.SendKeyCommand.Response#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.SendKeyCommand.Response#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.StatusEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.SendKeyCommand.Response#status()` The status of the `SendKey` command. |

## Public constructors

### Response

```
Response(status: KeypadInputTrait.StatusEnum = StatusEnum.Success)
```

Creates a response payload from the SendKey command.

## 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

### status

```
val status: KeypadInputTrait.StatusEnum
```

The status of the `SendKey` command. Valid values are defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.StatusEnum`.