# ChimeThemesTrait.ThemeStruct


```
class ChimeThemesTrait.ThemeStruct : ClusterStruct
```

<br />

*** ** * ** ***

Represents a collection of chime sounds. A theme can be permanent (year-round collection with no start/end times) or timeboxed (seasonal collection active only between start and end times).

## Summary

| ### Nested types |
|---|
| `@HomeExperimentalGenericApi enum ChimeThemesTrait.ThemeStruct.StructFields : Enum, Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `ThemeStruct( name: String, startTimeSeconds: OptionalValue<ULong>, endTimeSeconds: OptionalValue<ULong>, chimeSounds: List<ChimeThemesTrait.ChimeStruct> )` Creates the ThemeStruct class. |

| ### Public functions |
|---|---|
| `open StructDescriptor` | `@HomeExperimentalGenericApi getDescriptor()` Returns the descriptor for the struct. |
| `open Any?` | `@HomeExperimentalGenericApi getFieldValueById(tagId: UInt)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `List<ChimeThemesTrait.ChimeStruct>` | `chimeSounds` The collection of audio files (chimes) included in this theme. |
| `OptionalValue<ULong>` | `endTimeSeconds` For timeboxed themes, the end time when the theme expires, expressed as seconds since the Unix epoch. |
| `String` | `name` A stable string identifier for the theme used for display matching (for example, `halloween`, `birthday`). |
| `OptionalValue<ULong>` | `startTimeSeconds` For timeboxed themes, the start time when the theme becomes active, expressed as seconds since the Unix epoch. |

## Public constructors

### ThemeStruct

```
ThemeStruct(
    name: String = "",
    startTimeSeconds: OptionalValue<ULong> = OptionalValue.absent(),
    endTimeSeconds: OptionalValue<ULong> = OptionalValue.absent(),
    chimeSounds: List<ChimeThemesTrait.ChimeStruct> = emptyList()
)
```

Creates the ThemeStruct class.

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

### chimeSounds

```
val chimeSounds: List<ChimeThemesTrait.ChimeStruct>
```

The collection of audio files (chimes) included in this theme.

### endTimeSeconds

```
val endTimeSeconds: OptionalValue<ULong>
```

For timeboxed themes, the end time when the theme expires, expressed as seconds since the Unix epoch. If not present, the theme has no end restriction.

### name

```
val name: String
```

A stable string identifier for the theme used for display matching (for example, `halloween`, `birthday`).

### startTimeSeconds

```
val startTimeSeconds: OptionalValue<ULong>
```

For timeboxed themes, the start time when the theme becomes active, expressed as seconds since the Unix epoch. If not present, the theme has no start restriction.