Table of Contents

Class TombstoneObject

Namespace
ActivityPub.Types.AS.Extended.Object
Assembly
ActivityPub.Types.dll

A Tombstone represents a content object that has been deleted. It can be used in Collections to signify that there used to be an object at this position, but it has been deleted.

public class TombstoneObject : ASObject, IASModel<ASType, ASTypeEntity>, IASModel<ASType>, IASModel<ASObject, ASObjectEntity, ASType>, IASModel<ASObject, ASObjectEntity>, IASModel<ASObject>, IASModel<TombstoneObject, TombstoneObjectEntity, ASObject>, IASModel<TombstoneObject, TombstoneObjectEntity>, IASModel<TombstoneObject>
Inheritance
TombstoneObject
Implements
Inherited Members

Constructors

TombstoneObject()

Constructs a new instance and attaches it to a new, empty type graph.

public TombstoneObject()

TombstoneObject(ASType)

Constructs a new instance and extends an existing type graph from a provided model.

public TombstoneObject(ASType existingGraph)

Parameters

existingGraph ASType
See Also
Extend<TModel, TEntity>()

TombstoneObject(TypeMap, TombstoneObjectEntity?)

public TombstoneObject(TypeMap typeMap, TombstoneObjectEntity? entity)

Parameters

typeMap TypeMap
entity TombstoneObjectEntity

TombstoneObject(TypeMap, bool)

Constructs a new instance from an existing type graph. The existing graph is either extended or wrapped, depending on the value of

isExtending
public TombstoneObject(TypeMap typeMap, bool isExtending = true)

Parameters

typeMap TypeMap
isExtending bool

Remarks

All overrides MUST call this using

base(typeMap, false)

Exceptions

InvalidOperationException

If

extendGraph
is true and the entity type already exists in the graph
InvalidOperationException

If

extendGraph
is true and the entity requires another entity that is missing from the graph
InvalidCastException

If

extendGraph
is false and the object is not of type
TEntity
See Also
ProjectTo<TModel, TEntity>(bool)

Fields

TombstoneType

ActivityStreams type name for "Tombstone" types.

[PublicAPI]
public const string TombstoneType = "Tombstone"

Field Value

string

Properties

Deleted

On a Tombstone object, the deleted property is a timestamp for when the object was deleted.

public DateTime? Deleted { get; set; }

Property Value

DateTime?
See Also

Entity

private TombstoneObjectEntity Entity { get; }

Property Value

TombstoneObjectEntity

FormerType

On a Tombstone object, the formerType property identifies the type of the object that was deleted.

public string? FormerType { get; set; }

Property Value

string
See Also

Explicit Interface Implementations

IASModel<TombstoneObject>.ASTypeName

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

static string IASModel<TombstoneObject>.ASTypeName { get; }

Returns

string

IASModel<TombstoneObject>.FromGraph(TypeMap)

Constructs an instance from this type from a pre-populated type graph. The provided TypeMap instance is guaranteed to include an instance of type EntityType.

static TombstoneObject IASModel<TombstoneObject>.FromGraph(TypeMap typeMap)

Parameters

typeMap TypeMap

Returns

TombstoneObject