# ContentAppObserverTrait.ContentAppMessageCommand.Response

# ContentAppObserverTrait.ContentAppMessageCommand.Response


```
class ContentAppObserverTrait.ContentAppMessageCommand.Response : ClusterStruct
```

<br />

*** ** * ** ***

The result of the `ContentAppMessage` 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/ContentAppObserverTrait.ContentAppMessageCommand.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/ContentAppObserverTrait.ContentAppMessageCommand.Response#Response(com.google.home.matter.standard.ContentAppObserverTrait.StatusEnum,kotlin.String,kotlin.String)( status: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.StatusEnum, data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, encodingHint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? )` Creates a response payload from the ContentAppMessage 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/ContentAppObserverTrait.ContentAppMessageCommand.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/ContentAppObserverTrait.ContentAppMessageCommand.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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.Response#data()` Content app-specific data. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.Response#encodingHint()` A content app-specific hint as to the encoding of the data. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.StatusEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.Response#status()` The status of the command which resulted in this response. |

## Public constructors

### Response

```
Response(
    status: ContentAppObserverTrait.StatusEnum = StatusEnum.Success,
    data: String? = null,
    encodingHint: String? = null
)
```

Creates a response payload from the ContentAppMessage 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

### data

```
val data: String?
```

Content app-specific data.

### encodingHint

```
val encodingHint: String?
```

A content app-specific hint as to the encoding of the data.

### status

```
val status: ContentAppObserverTrait.StatusEnum
```

The status of the command which resulted in this response.