Table of Contents

Class InviteActivity

Namespace
ActivityPub.Types.AS.Extended.Activity
Assembly
ActivityPub.Types.dll

A specialization of Offer in which the actor is extending an invitation for the object to the target.

public class InviteActivity : OfferActivity, IASModel<ASType, ASTypeEntity>, IASModel<ASType>, IASModel<ASObject, ASObjectEntity, ASType>, IASModel<ASObject, ASObjectEntity>, IASModel<ASObject>, IASModel<ASActivity, ASActivityEntity, ASObject>, IASModel<ASActivity, ASActivityEntity>, IASModel<ASActivity>, IASModel<OfferActivity, OfferActivityEntity, ASActivity>, IASModel<OfferActivity, OfferActivityEntity>, IASModel<OfferActivity>, IASModel<InviteActivity, InviteActivityEntity, OfferActivity>, IASModel<InviteActivity, InviteActivityEntity>, IASModel<InviteActivity>
Inheritance
InviteActivity
Implements
Inherited Members

Constructors

InviteActivity()

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

public InviteActivity()

InviteActivity(ASType)

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

public InviteActivity(ASType existingGraph)

Parameters

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

InviteActivity(TypeMap, InviteActivityEntity?)

public InviteActivity(TypeMap typeMap, InviteActivityEntity? entity)

Parameters

typeMap TypeMap
entity InviteActivityEntity

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

InviteType

ActivityStreams type name for "Invite" types.

[PublicAPI]
public const string InviteType = "Invite"

Field Value

string

Properties

Entity

private InviteActivityEntity Entity { get; }

Property Value

InviteActivityEntity

Explicit Interface Implementations

IASModel<InviteActivity>.ASTypeName

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

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

Returns

string

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

Parameters

typeMap TypeMap

Returns

InviteActivity