Show / Hide Table of Contents

Class JsonTrait

Dynamic JSON trait state payload conforming to json_trait_schema.md. Used for Category 2 (vendor Matter clusters) and Category 3 (non-Matter capabilities) traits across all wire and internal paths, and for Category 1 traits on external JSON-only wire paths (e.g., Query with JSON_TRAIT_ONLY).

Inheritance
object
JsonTrait
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.HomeGraphService.v1.Data
Assembly: Google.Apis.HomeGraphService.v1.dll
Syntax
public class JsonTrait : IDirectResponseSchema

Properties

Data

Optional. Trait attribute map conforming to the trait's registered JSON Schema.

Declaration
[JsonProperty("data")]
public virtual IDictionary<string, object> Data { get; set; }
Property Value
Type Description
IDictionary<string, object>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Id

Required. Canonical symbolic trait ID per json_trait_schema.md: - Standard Matter (Cat 1): matter. (e.g., matter.thermostat) - Google / vendor Matter (Cat 1/2): matter.. (e.g., matter.google., matter.eve.utility) - Non-Matter (Cat 3, any provider incl. Google): ghp.. (e.g., ghp.acme.warranty, ghp.google.)

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX