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