Table of Contents

Class ASIntransitiveActivity

Namespace
ActivityPub.Types.AS
Assembly
ActivityPub.Types.dll

Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities.

public class ASIntransitiveActivity : 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<ASIntransitiveActivity, ASIntransitiveActivityEntity, ASActivity>, IASModel<ASIntransitiveActivity, ASIntransitiveActivityEntity>, IASModel<ASIntransitiveActivity>
Inheritance
ASIntransitiveActivity
Implements
Derived
Inherited Members

Constructors

ASIntransitiveActivity()

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

public ASIntransitiveActivity()

ASIntransitiveActivity(ASType)

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

public ASIntransitiveActivity(ASType existingGraph)

Parameters

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

ASIntransitiveActivity(TypeMap, ASIntransitiveActivityEntity?)

public ASIntransitiveActivity(TypeMap typeMap, ASIntransitiveActivityEntity? entity)

Parameters

typeMap TypeMap
entity ASIntransitiveActivityEntity

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

IntransitiveActivityType

ActivityStreams type name for "IntransitiveActivity" types.

[PublicAPI]
public const string IntransitiveActivityType = "IntransitiveActivity"

Field Value

string

Properties

Entity

private ASIntransitiveActivityEntity Entity { get; }

Property Value

ASIntransitiveActivityEntity

Explicit Interface Implementations

IASModel<ASIntransitiveActivity>.ASTypeName

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

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

Returns

string

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

Parameters

typeMap TypeMap

Returns

ASIntransitiveActivity

See Also