Table of Contents

Class PersonActor

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

Represents an individual person.

public class PersonActor : 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<PersonActor, PersonActorEntity, APActor>, IASModel<PersonActor, PersonActorEntity>, IASModel<PersonActor>
Inheritance
PersonActor
Implements
Inherited Members

Constructors

PersonActor()

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

public PersonActor()

PersonActor(ASType)

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

public PersonActor(ASType existingGraph)

Parameters

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

PersonActor(TypeMap, PersonActorEntity?)

public PersonActor(TypeMap typeMap, PersonActorEntity? entity)

Parameters

typeMap TypeMap
entity PersonActorEntity

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

PersonType

ActivityStreams type name for "Person" types.

[PublicAPI]
public const string PersonType = "Person"

Field Value

string

Properties

Entity

private PersonActorEntity Entity { get; }

Property Value

PersonActorEntity

Explicit Interface Implementations

IASModel<PersonActor>.ASTypeName

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

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

Returns

string

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

Parameters

typeMap TypeMap

Returns

PersonActor