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