# DoorLockTrait.GetCredentialStatusCommand.Response

# DoorLockTrait.GetCredentialStatusCommand.Response


```
class DoorLockTrait.GetCredentialStatusCommand.Response : ClusterStruct
```

<br />

*** ** * ** ***

Returns the status for the specified credential.

## 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/DoorLockTrait.GetCredentialStatusCommand.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/DoorLockTrait.GetCredentialStatusCommand.Response#Response(kotlin.Boolean,kotlin.UShort,kotlin.UByte,kotlin.UByte,kotlin.UShort,kotlin.ByteArray)( credentialExists: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, userIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?, creatorFabricIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?, lastModifiedFabricIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?, nextCredentialIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?, credentialData: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html? )` Creates a response payload from the GetCredentialStatus 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/DoorLockTrait.GetCredentialStatusCommand.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/DoorLockTrait.GetCredentialStatusCommand.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/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetCredentialStatusCommand.Response#creatorFabricIndex()` The credential's creator fabric index. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetCredentialStatusCommand.Response#credentialData()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetCredentialStatusCommand.Response#credentialExists()` A boolean value indicating the requested credential type and index exists and is populated for a given user index. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetCredentialStatusCommand.Response#lastModifiedFabricIndex()` The credential's last modifier fabric index. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetCredentialStatusCommand.Response#nextCredentialIndex()` The next occupied index in the database for the credential type requested, which is useful for quickly identifying occupied credential slots in the database. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetCredentialStatusCommand.Response#userIndex()` The credential's corresponding user index value if the credential exists. |

## Public constructors

### Response

```
Response(
    credentialExists: Boolean = false,
    userIndex: UShort? = null,
    creatorFabricIndex: UByte? = null,
    lastModifiedFabricIndex: UByte? = null,
    nextCredentialIndex: UShort? = null,
    credentialData: ByteArray? = null
)
```

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

### creatorFabricIndex

```
val creatorFabricIndex: UByte?
```

The credential's creator fabric index.

### credentialData

```
val credentialData: ByteArray?
```

### credentialExists

```
val credentialExists: Boolean
```

A boolean value indicating the requested credential type and index exists and is populated for a given user index.

### lastModifiedFabricIndex

```
val lastModifiedFabricIndex: UByte?
```

The credential's last modifier fabric index.

### nextCredentialIndex

```
val nextCredentialIndex: UShort?
```

The next occupied index in the database for the credential type requested, which is useful for quickly identifying occupied credential slots in the database.

### userIndex

```
val userIndex: UShort?
```

The credential's corresponding user index value if the credential exists.