Table of Contents

Class StateKey

Namespace
Xapi.Client
Assembly
Xapi.Client.dll

A document in the State resource (activities/state), IEEE 9274.1.1, 4.1.6.2.

public sealed record StateKey : DocumentKey, IEquatable<DocumentKey>, IEquatable<StateKey>
Inheritance
StateKey
Implements
Inherited Members

Constructors

StateKey(Iri, Agent, string, Guid?)

Creates a key.

public StateKey(Iri activityId, Agent agent, string stateId, Guid? registration = null)

Parameters

activityId Iri

The Activity the state belongs to (activityId).

agent Agent

The Agent the state belongs to (agent).

stateId string

The document id within that context (stateId).

registration Guid?

The registration, if the state is tied to one (registration).

Properties

ActivityId

The Activity the state belongs to (activityId).

public Iri ActivityId { get; init; }

Property Value

Iri

Agent

The Agent the state belongs to (agent).

public Agent Agent { get; init; }

Property Value

Agent

Registration

The registration, if the state is tied to one (registration).

public Guid? Registration { get; init; }

Property Value

Guid?

StateId

The document id within that context (stateId).

public string StateId { get; init; }

Property Value

string