ChimeThemesTrait.ThemeStruct

class ChimeThemesTrait.ThemeStruct : ClusterStruct


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

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

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

List<ChimeThemesTrait.ChimeStruct>

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

OptionalValue<ULong>

For timeboxed themes, the end time when the theme expires, expressed as seconds since the Unix epoch.

String

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

OptionalValue<ULong>

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.