Class TentativeAcceptActivity
- Namespace
- ActivityPub.Types.AS.Extended.Activity
- Assembly
- ActivityPub.Types.dll
A specialization of TentativeAccept indicating that the tentativeAcceptance is tentative.
public class TentativeAcceptActivity : AcceptActivity, IASModel<ASType, ASTypeEntity>, IASModel<ASType>, IASModel<ASObject, ASObjectEntity, ASType>, IASModel<ASObject, ASObjectEntity>, IASModel<ASObject>, IASModel<ASActivity, ASActivityEntity, ASObject>, IASModel<ASActivity, ASActivityEntity>, IASModel<ASActivity>, IASModel<AcceptActivity, AcceptActivityEntity, ASActivity>, IASModel<AcceptActivity, AcceptActivityEntity>, IASModel<AcceptActivity>, IASModel<TentativeAcceptActivity, TentativeAcceptActivityEntity, AcceptActivity>, IASModel<TentativeAcceptActivity, TentativeAcceptActivityEntity>, IASModel<TentativeAcceptActivity>
- Inheritance
-
TentativeAcceptActivity
- Implements
- Inherited Members
Constructors
TentativeAcceptActivity()
Constructs a new instance and attaches it to a new, empty type graph.
public TentativeAcceptActivity()
TentativeAcceptActivity(ASType)
Constructs a new instance and extends an existing type graph from a provided model.
public TentativeAcceptActivity(ASType existingGraph)
Parameters
existingGraph
ASType
- See Also
-
Extend<TModel, TEntity>()
TentativeAcceptActivity(TypeMap, TentativeAcceptActivityEntity?)
public TentativeAcceptActivity(TypeMap typeMap, TentativeAcceptActivityEntity? entity)
Parameters
typeMap
TypeMapentity
TentativeAcceptActivityEntity
TentativeAcceptActivity(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 TentativeAcceptActivity(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
TentativeAcceptType
ActivityStreams type name for "TentativeAccept" types.
[PublicAPI]
public const string TentativeAcceptType = "TentativeAccept"
Field Value
Properties
Entity
private TentativeAcceptActivityEntity Entity { get; }
Property Value
Explicit Interface Implementations
IASModel<TentativeAcceptActivity>.ASTypeName
AS type name of this entity. For the full list of names in the object graph, use ASTypes.
static string IASModel<TentativeAcceptActivity>.ASTypeName { get; }
Returns
IASModel<TentativeAcceptActivity>.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 TentativeAcceptActivity IASModel<TentativeAcceptActivity>.FromGraph(TypeMap typeMap)
Parameters
typeMap
TypeMap