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