Table of Contents

Class ASTypeEntity

Namespace
ActivityPub.Types.AS
Assembly
ActivityPub.Types.dll

Base type of all ActivityStreams / ActivityPub objects. Subtypes MUST NOT contain any fields or auto-properties! Instead, all data should be stored in a matching entity class which derives from ASEntity.

public sealed class ASTypeEntity : ASEntity<ASType, ASTypeEntity>
Inheritance
ASTypeEntity
Inherited Members

Remarks

This is a synthetic type created to help adapt ActivityStreams to the .NET object model. It does not exist in the ActivityStreams standard.

Fields

_id

private string? _id

Field Value

string

Properties

AttributedTo

Identifies one or more entities to which this object is attributed. The attributed entities might not be Actors. For instance, an object might be attributed to the completion of another activity.

[JsonPropertyName("attributedTo")]
public LinkableList<ASObject> AttributedTo { get; set; }

Property Value

LinkableList<ASObject>
See Also

Id

Provides the globally unique identifier for an

Object
or
Link
.
[JsonPropertyName("id")]
public string? Id { get; set; }

Property Value

string
See Also

IsAnonymous

True if this object is anonymous and should be considered part of its parent context.

[JsonIgnore]
public bool IsAnonymous { get; private set; }

Property Value

bool

Remarks

MediaType

When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.

[JsonPropertyName("mediaType")]
public string? MediaType { get; set; }

Property Value

string
See Also

Name

A simple, human-readable, plain-text name for the object. HTML markup MUST NOT be included.

[JsonPropertyName("name")]
public NaturalLanguageString? Name { get; set; }

Property Value

NaturalLanguageString
See Also

Preview

Identifies an entity that provides a preview of this object.

[JsonPropertyName("preview")]
public Linkable<ASObject>? Preview { get; set; }

Property Value

Linkable<ASObject>
See Also

RequiresObjectForm

True if the object's current state can only be represented by the object form. Objects that extend ASLink MUST return true if any properties are populated, other than HRef!

[JsonIgnore]
public override bool RequiresObjectForm { get; }

Property Value

bool

See Also