Table of Contents

Class ApplicationActor

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

Describes a software application.

public class ApplicationActor : APActor, IASModel<ASType, ASTypeEntity>, IASModel<ASType>, IASModel<ASObject, ASObjectEntity, ASType>, IASModel<ASObject, ASObjectEntity>, IASModel<ASObject>, IASModel<APActor, APActorEntity, ASObject>, IASModel<APActor, APActorEntity>, IASModel<APActor>, IASModel<ApplicationActor, ApplicationActorEntity, APActor>, IASModel<ApplicationActor, ApplicationActorEntity>, IASModel<ApplicationActor>
Inheritance
ApplicationActor
Implements
Inherited Members

Constructors

ApplicationActor()

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

public ApplicationActor()

ApplicationActor(ASType)

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

public ApplicationActor(ASType existingGraph)

Parameters

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

ApplicationActor(TypeMap, ApplicationActorEntity?)

public ApplicationActor(TypeMap typeMap, ApplicationActorEntity? entity)

Parameters

typeMap TypeMap
entity ApplicationActorEntity

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

ApplicationType

ActivityStreams type name for "Application" types.

[PublicAPI]
public const string ApplicationType = "Application"

Field Value

string

Properties

Entity

private ApplicationActorEntity Entity { get; }

Property Value

ApplicationActorEntity

Explicit Interface Implementations

IASModel<ApplicationActor>.ASTypeName

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

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

Returns

string

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

Parameters

typeMap TypeMap

Returns

ApplicationActor