Table of Contents

Class FlagActivity

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

Indicates that the actor is "flagging" the object. Flagging is defined in the sense common to many social platforms as reporting content as being inappropriate for any number of reasons.

public class FlagActivity : ASActivity, IASModel<ASType, ASTypeEntity>, IASModel<ASType>, IASModel<ASObject, ASObjectEntity, ASType>, IASModel<ASObject, ASObjectEntity>, IASModel<ASObject>, IASModel<ASActivity, ASActivityEntity, ASObject>, IASModel<ASActivity, ASActivityEntity>, IASModel<ASActivity>, IASModel<FlagActivity, FlagActivityEntity, ASActivity>, IASModel<FlagActivity, FlagActivityEntity>, IASModel<FlagActivity>
Inheritance
FlagActivity
Implements
Inherited Members

Constructors

FlagActivity()

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

public FlagActivity()

FlagActivity(ASType)

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

public FlagActivity(ASType existingGraph)

Parameters

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

FlagActivity(TypeMap, FlagActivityEntity?)

public FlagActivity(TypeMap typeMap, FlagActivityEntity? entity)

Parameters

typeMap TypeMap
entity FlagActivityEntity

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

FlagType

ActivityStreams type name for "Flag" types.

[PublicAPI]
public const string FlagType = "Flag"

Field Value

string

Properties

Entity

private FlagActivityEntity Entity { get; }

Property Value

FlagActivityEntity

Explicit Interface Implementations

IASModel<FlagActivity>.ASTypeName

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

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

Returns

string

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

Parameters

typeMap TypeMap

Returns

FlagActivity