# PowerSourceTrait.BatChargeFaultChangeType

# PowerSourceTrait.BatChargeFaultChangeType


```
class PowerSourceTrait.BatChargeFaultChangeType : ClusterStruct
```

<br />

*** ** * ** ***

## 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/PowerSourceTrait.BatChargeFaultChangeType.StructFields : 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 struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatChargeFaultChangeType#BatChargeFaultChangeType(kotlin.collections.List,kotlin.collections.List)( current: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatChargeFaultEnum>, previous: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatChargeFaultEnum> )` |

| ### 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/PowerSourceTrait.BatChargeFaultChangeType#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/PowerSourceTrait.BatChargeFaultChangeType#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/PowerSourceTrait.BatChargeFaultEnum>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatChargeFaultChangeType#current()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatChargeFaultEnum>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatChargeFaultChangeType#previous()` |

## Public constructors

### BatChargeFaultChangeType

```
BatChargeFaultChangeType(
    current: List<PowerSourceTrait.BatChargeFaultEnum> = emptyList(),
    previous: List<PowerSourceTrait.BatChargeFaultEnum> = emptyList()
)
```

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

### current

```
val current: List<PowerSourceTrait.BatChargeFaultEnum>
```

### previous

```
val previous: List<PowerSourceTrait.BatChargeFaultEnum>
```