Class GroupActor
- Namespace
- ActivityPub.Types.AS.Extended.Actor
- Assembly
- ActivityPub.Types.dll
Represents a formal or informal collective of Actors.
public class GroupActor : 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<GroupActor, GroupActorEntity, APActor>, IASModel<GroupActor, GroupActorEntity>, IASModel<GroupActor>
- Inheritance
-
GroupActor
- Implements
- Inherited Members
Constructors
GroupActor()
Constructs a new instance and attaches it to a new, empty type graph.
public GroupActor()
GroupActor(ASType)
Constructs a new instance and extends an existing type graph from a provided model.
public GroupActor(ASType existingGraph)
Parameters
existingGraph
ASType
- See Also
-
Extend<TModel, TEntity>()
GroupActor(TypeMap, GroupActorEntity?)
public GroupActor(TypeMap typeMap, GroupActorEntity? entity)
Parameters
typeMap
TypeMapentity
GroupActorEntity
GroupActor(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 GroupActor(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
GroupType
ActivityStreams type name for "Group" types.
[PublicAPI]
public const string GroupType = "Group"
Field Value
Properties
Entity
private GroupActorEntity Entity { get; }
Property Value
Explicit Interface Implementations
IASModel<GroupActor>.ASTypeName
AS type name of this entity. For the full list of names in the object graph, use ASTypes.
static string IASModel<GroupActor>.ASTypeName { get; }
Returns
IASModel<GroupActor>.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 GroupActor IASModel<GroupActor>.FromGraph(TypeMap typeMap)
Parameters
typeMap
TypeMap