Class TravelActivity
- Namespace
- ActivityPub.Types.AS.Extended.Activity
- Assembly
- ActivityPub.Types.dll
Indicates that the actor is traveling to target from origin. Travel is an IntransitiveObject whose actor specifies the direct object. If the target or origin are not specified, either can be determined by context.
public class TravelActivity : 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<TravelActivity, TravelActivityEntity, ASIntransitiveActivity>, IASModel<TravelActivity, TravelActivityEntity>, IASModel<TravelActivity>
- Inheritance
-
TravelActivity
- Implements
- Inherited Members
Constructors
TravelActivity()
Constructs a new instance and attaches it to a new, empty type graph.
public TravelActivity()
TravelActivity(ASType)
Constructs a new instance and extends an existing type graph from a provided model.
public TravelActivity(ASType existingGraph)
Parameters
existingGraph
ASType
- See Also
-
Extend<TModel, TEntity>()
TravelActivity(TypeMap, TravelActivityEntity?)
public TravelActivity(TypeMap typeMap, TravelActivityEntity? entity)
Parameters
typeMap
TypeMapentity
TravelActivityEntity
TravelActivity(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 TravelActivity(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
TravelType
ActivityStreams type name for "Travel" types.
[PublicAPI]
public const string TravelType = "Travel"
Field Value
Properties
Entity
private TravelActivityEntity Entity { get; }
Property Value
Explicit Interface Implementations
IASModel<TravelActivity>.ASTypeName
AS type name of this entity. For the full list of names in the object graph, use ASTypes.
static string IASModel<TravelActivity>.ASTypeName { get; }
Returns
IASModel<TravelActivity>.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 TravelActivity IASModel<TravelActivity>.FromGraph(TypeMap typeMap)
Parameters
typeMap
TypeMap