Class FollowActivity
- Namespace
- ActivityPub.Types.AS.Extended.Activity
- Assembly
- ActivityPub.Types.dll
Indicates that the actor is "following" the object. Following is defined in the sense typically used within Social systems in which the actor is interested in any activity performed by or on the object. The target and origin typically have no defined meaning.
public class FollowActivity : 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<FollowActivity, FollowActivityEntity, ASActivity>, IASModel<FollowActivity, FollowActivityEntity>, IASModel<FollowActivity>
- Inheritance
-
FollowActivity
- Implements
- Inherited Members
Constructors
FollowActivity()
Constructs a new instance and attaches it to a new, empty type graph.
public FollowActivity()
FollowActivity(ASType)
Constructs a new instance and extends an existing type graph from a provided model.
public FollowActivity(ASType existingGraph)
Parameters
existingGraph
ASType
- See Also
-
Extend<TModel, TEntity>()
FollowActivity(TypeMap, FollowActivityEntity?)
public FollowActivity(TypeMap typeMap, FollowActivityEntity? entity)
Parameters
typeMap
TypeMapentity
FollowActivityEntity
FollowActivity(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 FollowActivity(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
FollowType
ActivityStreams type name for "Follow" types.
[PublicAPI]
public const string FollowType = "Follow"
Field Value
Properties
Entity
private FollowActivityEntity Entity { get; }
Property Value
Explicit Interface Implementations
IASModel<FollowActivity>.ASTypeName
AS type name of this entity. For the full list of names in the object graph, use ASTypes.
static string IASModel<FollowActivity>.ASTypeName { get; }
Returns
IASModel<FollowActivity>.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 FollowActivity IASModel<FollowActivity>.FromGraph(TypeMap typeMap)
Parameters
typeMap
TypeMap