# GenericTrait

# GenericTrait


```
@HomeExperimentalGenericApi
interface GenericTrait : Trait
```

<br />

*** ** * ** ***

A `https://developers.home.google.com/reference/kotlin/com/google/home/Trait` that contains data represented generically as a `https://developers.home.google.com/reference/kotlin/com/google/home/FieldMap`

## Summary

| ### Public functions |
|---|---|
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/Field, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/GenericTrait#sendCommand(com.google.home.CommandDescriptor,kotlin.collections.Map,kotlin.Boolean)( commandDescriptor: https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor, commandArgs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/Field, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?>, useTimedCommand: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/Field, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/GenericTrait#attributes()` |

| ### Inherited properties |
|---|
| From [com.google.home.Trait](https://developers.home.google.com/reference/kotlin/com/google/home/Trait) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<https://developers.home.google.com/reference/kotlin/com/google/home/Trait>` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#factory()` | | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#metadata()` | |

## Public functions

### sendCommand

```
suspend fun sendCommand(
    commandDescriptor: CommandDescriptor,
    commandArgs: Map<Field, Any?>,
    useTimedCommand: Boolean
): Map<Field, Any?>?
```

## Public properties

### attributes

```
val attributes: Map<Field, Any?>
```