Table of Contents

Class UpdateActivity

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

Indicates that the actor has updated the object. Note, however, that this vocabulary does not define a mechanism for describing the actual set of modifications made to object. The target and origin typically have no defined meaning.

public class UpdateActivity : 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<UpdateActivity, UpdateActivityEntity, ASActivity>, IASModel<UpdateActivity, UpdateActivityEntity>, IASModel<UpdateActivity>
Inheritance
UpdateActivity
Implements
Inherited Members

Constructors

UpdateActivity()

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

public UpdateActivity()

UpdateActivity(ASType)

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

public UpdateActivity(ASType existingGraph)

Parameters

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

UpdateActivity(TypeMap, UpdateActivityEntity?)

public UpdateActivity(TypeMap typeMap, UpdateActivityEntity? entity)

Parameters

typeMap TypeMap
entity UpdateActivityEntity

UpdateActivity(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 UpdateActivity(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

UpdateType

ActivityStreams type name for "Update" types.

[PublicAPI]
public const string UpdateType = "Update"

Field Value

string

Properties

Entity

private UpdateActivityEntity Entity { get; }

Property Value

UpdateActivityEntity

Explicit Interface Implementations

IASModel<UpdateActivity>.ASTypeName

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

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

Returns

string

IASModel<UpdateActivity>.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 UpdateActivity IASModel<UpdateActivity>.FromGraph(TypeMap typeMap)

Parameters

typeMap TypeMap

Returns

UpdateActivity