# ThermostatTrait.AtomicRequestCommand.Response

# ThermostatTrait.AtomicRequestCommand.Response


```
class ThermostatTrait.AtomicRequestCommand.Response : ClusterStruct
```

<br />

*** ** * ** ***

The result of the atomic request.

## 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/ThermostatTrait.AtomicRequestCommand.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/ThermostatTrait.AtomicRequestCommand.Response#Response(kotlin.UByte,kotlin.collections.List,kotlin.UShort)( statusCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, attributeStatus: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicAttributeStatusStruct>, timeout: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html? )` Creates a response payload from the AtomicRequest 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/ThermostatTrait.AtomicRequestCommand.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/ThermostatTrait.AtomicRequestCommand.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.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicAttributeStatusStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicRequestCommand.Response#attributeStatus()` A list of statuses for the attributes involved in the atomic write. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicRequestCommand.Response#statusCode()` The status of the atomic write. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicRequestCommand.Response#timeout()` A timeout provided by the server. |

## Public constructors

### Response

```
Response(
    statusCode: UByte,
    attributeStatus: List<ThermostatTrait.AtomicAttributeStatusStruct> = emptyList(),
    timeout: UShort? = null
)
```

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

### attributeStatus

```
val attributeStatus: List<ThermostatTrait.AtomicAttributeStatusStruct>
```

A list of statuses for the attributes involved in the atomic write. This list contain a status for each of the attribute IDs provided in the `AtomicRequest` command.

### statusCode

```
val statusCode: UByte
```

The status of the atomic write.

### timeout

```
val timeout: UShort?
```

A timeout provided by the server.