Show / Hide Table of Contents

Class JsonTrait

Represents a dynamic JSON trait state payload that conforms to json_trait_schema.md. This message is 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 (for example, 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. Holds the trait attributes, which conform 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. Identifies the trait by its canonical four-segment capability ID, capability...: * Standard or Google Matter (Category 1): capability.matter.standard. or capability.matter.google., for example capability.matter.standard.Thermostat. * Vendor Matter (Category 2): capability.matter... * Non-Matter (Category 3, from any provider including Google): capability.generic.., for example capability.generic.acme.Warranty.

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