Show / Hide Table of Contents

Class TraitData

Contains the trait payload for a single trait.

Inheritance
object
TraitData
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 TraitData : IDirectResponseSchema

Properties

CommitTime

object representation of CommitTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CommitTimeDateTimeOffset instead.")]
public virtual object CommitTime { get; set; }
Property Value
Type Description
object

CommitTimeDateTimeOffset

DateTimeOffset representation of CommitTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? CommitTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

CommitTimeRaw

Other metadata for the trait. The time the client update was committed in the server.

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

ETag

The ETag of the item.

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

ProviderVersionTime

object representation of ProviderVersionTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ProviderVersionTimeDateTimeOffset instead.")]
public virtual object ProviderVersionTime { get; set; }
Property Value
Type Description
object

ProviderVersionTimeDateTimeOffset

DateTimeOffset representation of ProviderVersionTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? ProviderVersionTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

ProviderVersionTimeRaw

Optional in write requests (e.g. ReportStateAndNotification). If set, represents the provider version timestamp of the existing trait in the database. The server will perform optimistic locking validation if this field is present and the experiment is enabled. It will not be persisted to the database.

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

Trait

The Provider Home API trait payload.

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

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX