Class ASEntity<TModel, TEntity>
- 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<TModel, TEntity> : ASEntity where TModel : ASType, IASModel<TModel, TEntity> where TEntity : ASEntity<TModel, TEntity>
Type Parameters
TModel
Type of the model associated with this entity. Will set the value of ASTypeName and BaseTypeName.
TEntity
Type of entity. Should be set to the type of this
- Inheritance
-
ASEntity<TModel, TEntity>
- Derived
- Inherited Members
Properties
ASTypeName
AS type name of this entity. For the full list of names in the object graph, use ASTypes.
[JsonIgnore]
public override sealed string? ASTypeName { get; }
Property Value
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 override sealed string? BaseTypeName { get; }
Property Value
Remarks
This has no effect unless ASTypeName is non-null.
DefiningContext
JSON-LD context(s) that define this entity.
[JsonIgnore]
public override sealed IJsonLDContext DefiningContext { get; }