Table of Contents

Class ASEntity

Namespace
ActivityPub.Types
Assembly
ActivityPub.Types.dll

Base type for AS entity classes. Entities are singletons that contain data for a certain type within an object graph.

public abstract class ASEntity
Inheritance
ASEntity
Derived
Inherited Members

Constructors

ASEntity()

internal ASEntity()

Properties

ASTypeName

AS type name of this entity. For the full list of names in the object graph, use ASTypes.

[JsonIgnore]
public virtual string? ASTypeName { get; }

Property Value

string

BaseTypeName

AS type name of this entity's "base type". When this entity is added to the graph, the target type will be removed if present. This allows one entity type to "extend" another. This should be set to false for extension types.

[JsonIgnore]
public virtual string? BaseTypeName { get; }

Property Value

string

Remarks

This has no effect unless ASTypeName is non-null.

DefiningContext

JSON-LD context(s) that define this entity.

[JsonIgnore]
public virtual IJsonLDContext DefiningContext { get; }

Property Value

IJsonLDContext

RequiresObjectForm

True if the object's current state can only be represented by the object form. Objects that extend ASLink MUST return true if any properties are populated, other than HRef!

[JsonIgnore]
public virtual bool RequiresObjectForm { get; }

Property Value

bool

UnmappedProperties

Properties that exist in the JSON, but did not map to any properties.

[JsonInclude]
[JsonExtensionData]
public Dictionary<string, JsonElement>? UnmappedProperties { internal get; set; }

Property Value

Dictionary<string, JsonElement>