Content created on the site must implement this interface for the social services to support it.
Article is defined in the Telligent.Evolution.Extensibility.Api.Entities.Version1 namespace.
Definition
class Article : ApiEntity, IApiEntity, IContent, IExtendedAuditable { Article(); Article(AdditionalInfo info); int? ActiveVersionCount { get; set; } ArticleCollection ArticleCollection { get; set; } User Author { get; set; } ApiList<ArticleCategory> Categories { get; set; } Guid ContentId { get; } Guid ContentTypeId { get; } DateTime? CreateDate { get; set; } DateTime? DeleteDate { get; set; } IList<Error> Errors { get; } Guid? Id { get; set; } string Identifier { get; set; } bool? IsDeleted { get; set; } bool? IsPublished { get; set; } DateTime? LastUpdateDate { get; set; } string MetaDescription { get; set; } string MetaKeywords { get; set; } string MetaTitle { get; set; } DateTime? PublishDate { get; set; } DateTime? PublishEndDate { get; set; } PublishGroup PublishGroup { get; set; } bool? SuppressNotifications { get; set; } ApiList<string> Tags { get; set; } string Title { get; set; } int? TotalHelpful { get; set; } int? TotalNotHelpful { get; set; } ArticleType Type { get; set; } string Url { get; set; } string UrlKey { get; set; } Guid? Version { get; set; } IList<Warning> Warnings { get; } string Body(); string Body(string postTarget); bool HasErrors(); bool HasWarnings(); bool HasWarningsOrErrors(); void ThrowErrors(); }
Constructors
Article();
Article(AdditionalInfo info);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| info | AdditionalInfo | Info | Required |
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| ActiveVersionCount | int? | |||
| ArticleCollection | ArticleCollection | |||
| Author | User | |||
| Categories | ApiList<ArticleCategory> | |||
| ContentId | Guid | A Guid uniquely identifying the content. | ||
| ContentTypeId | Guid | A Guid identifying the type of content. All content of the same type (i.e. wiki page) will have the same value here. | ||
| CreateDate | DateTime? | |||
| DeleteDate | DateTime? | |||
| Errors | IList<Error> | |||
| Id | Guid? | |||
| Identifier | string | |||
| IsDeleted | bool? | |||
| IsPublished | bool? | |||
| LastUpdateDate | DateTime? | |||
| MetaDescription | string | |||
| MetaKeywords | string | |||
| MetaTitle | string | |||
| PublishDate | DateTime? | |||
| PublishEndDate | DateTime? | |||
| PublishGroup | PublishGroup | |||
| SuppressNotifications | bool? | |||
| Tags | ApiList<string> | |||
| Title | string | |||
| TotalHelpful | int? | |||
| TotalNotHelpful | int? | |||
| Type | ArticleType | |||
| Url | string | A Url to the content on the site. | ||
| UrlKey | string | |||
| Version | Guid? | |||
| Warnings | IList<Warning> |
Methods
string Body();
Return Type
string Body(string postTarget);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| postTarget | string | Post Target | Required |