Class ArriveActivity
- Namespace
- ActivityPub.Types.AS.Extended.Activity
- Assembly
- ActivityPub.Types.dll
An IntransitiveActivity that indicates that the actor has arrived at the location. The origin can be used to identify the context from which the actor originated. The target typically has no defined meaning.
public class ArriveActivity : ASIntransitiveActivity, 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>, IASModel<ArriveActivity, ArriveActivityEntity, ASIntransitiveActivity>, IASModel<ArriveActivity, ArriveActivityEntity>, IASModel<ArriveActivity>
- Inheritance
-
ArriveActivity
- Implements
- Inherited Members
Constructors
ArriveActivity()
Constructs a new instance and attaches it to a new, empty type graph.
public ArriveActivity()
ArriveActivity(ASType)
Constructs a new instance and extends an existing type graph from a provided model.
public ArriveActivity(ASType existingGraph)
Parameters
existingGraph
ASType
- See Also
-
Extend<TModel, TEntity>()
ArriveActivity(TypeMap, ArriveActivityEntity?)
public ArriveActivity(TypeMap typeMap, ArriveActivityEntity? entity)
Parameters
typeMap
TypeMapentity
ArriveActivityEntity
ArriveActivity(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 ArriveActivity(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
ArriveType
ActivityStreams type name for "Arrive" types.
[PublicAPI]
public const string ArriveType = "Arrive"
Field Value
Properties
Entity
private ArriveActivityEntity Entity { get; }
Property Value
Explicit Interface Implementations
IASModel<ArriveActivity>.ASTypeName
AS type name of this entity. For the full list of names in the object graph, use ASTypes.
static string IASModel<ArriveActivity>.ASTypeName { get; }
Returns
IASModel<ArriveActivity>.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 ArriveActivity IASModel<ArriveActivity>.FromGraph(TypeMap typeMap)
Parameters
typeMap
TypeMap