Table of Contents

Class ImageObject

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

An image document of any kind

public class ImageObject : DocumentObject, IASModel<ASType, ASTypeEntity>, IASModel<ASType>, IASModel<ASObject, ASObjectEntity, ASType>, IASModel<ASObject, ASObjectEntity>, IASModel<ASObject>, IASModel<DocumentObject, DocumentObjectEntity, ASObject>, IASModel<DocumentObject, DocumentObjectEntity>, IASModel<DocumentObject>, IASModel<ImageObject, ImageObjectEntity, DocumentObject>, IASModel<ImageObject, ImageObjectEntity>, IASModel<ImageObject>
Inheritance
ImageObject
Implements
Inherited Members

Constructors

ImageObject()

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

public ImageObject()

ImageObject(ASType)

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

public ImageObject(ASType existingGraph)

Parameters

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

ImageObject(TypeMap, ImageObjectEntity?)

public ImageObject(TypeMap typeMap, ImageObjectEntity? entity)

Parameters

typeMap TypeMap
entity ImageObjectEntity

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

ImageType

ActivityStreams type name for "Image" types.

[PublicAPI]
public const string ImageType = "Image"

Field Value

string

Properties

Entity

private ImageObjectEntity Entity { get; }

Property Value

ImageObjectEntity

Explicit Interface Implementations

IASModel<ImageObject>.ASTypeName

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

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

Returns

string

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

Parameters

typeMap TypeMap

Returns

ImageObject