Class UndoActivity
- Namespace
- ActivityPub.Types.AS.Extended.Activity
- Assembly
- ActivityPub.Types.dll
Indicates that the actor is undoing the object. In most cases, the object will be an Activity describing some previously performed action (for instance, a person may have previously "liked" an article but, for whatever reason, might choose to undo that like at some later point in time). The target and origin typically have no defined meaning.
public class UndoActivity : ASActivity, IASModel<ASType, ASTypeEntity>, IASModel<ASType>, IASModel<ASObject, ASObjectEntity, ASType>, IASModel<ASObject, ASObjectEntity>, IASModel<ASObject>, IASModel<ASActivity, ASActivityEntity, ASObject>, IASModel<ASActivity, ASActivityEntity>, IASModel<ASActivity>, IASModel<UndoActivity, UndoActivityEntity, ASActivity>, IASModel<UndoActivity, UndoActivityEntity>, IASModel<UndoActivity>
- Inheritance
-
UndoActivity
- Implements
- Inherited Members
Constructors
UndoActivity()
Constructs a new instance and attaches it to a new, empty type graph.
public UndoActivity()
UndoActivity(ASType)
Constructs a new instance and extends an existing type graph from a provided model.
public UndoActivity(ASType existingGraph)
Parameters
existingGraph
ASType
- See Also
-
Extend<TModel, TEntity>()
UndoActivity(TypeMap, UndoActivityEntity?)
public UndoActivity(TypeMap typeMap, UndoActivityEntity? entity)
Parameters
typeMap
TypeMapentity
UndoActivityEntity
UndoActivity(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 UndoActivity(TypeMap typeMap, bool isExtending = true)
Parameters
Remarks
All overrides MUST call this using
base(typeMap, false)
Exceptions
- InvalidOperationException
If
is true and the entity type already exists in the graphextendGraph
- InvalidOperationException
If
is true and the entity requires another entity that is missing from the graphextendGraph
- InvalidCastException
If
is false and the object is not of typeextendGraph
TEntity
- See Also
Fields
UndoType
ActivityStreams type name for "Undo" types.
[PublicAPI]
public const string UndoType = "Undo"
Field Value
Properties
Entity
private UndoActivityEntity Entity { get; }
Property Value
Explicit Interface Implementations
IASModel<UndoActivity>.ASTypeName
AS type name of this entity. For the full list of names in the object graph, use ASTypes.
static string IASModel<UndoActivity>.ASTypeName { get; }
Returns
IASModel<UndoActivity>.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 UndoActivity IASModel<UndoActivity>.FromGraph(TypeMap typeMap)
Parameters
typeMap
TypeMap