Content created on the site must implement this interface for the social services to support it.
BlogPost is defined in the Telligent.Evolution.Extensibility.Api.Entities.Version1 namespace.
Definition
class BlogPost : LazyPostApiEntityWithExtendedAttributes<WeblogPost>, IApiEntity, IAuthorIpTrackingContent, IExtendedAuditable, IFileReviewableContent, ITextReviewableContent
{
BlogPost();
BlogPost(Func<WeblogPost> corePostLoader);
BlogPost(AdditionalInfo additionalInfo);
BlogPost(Error error);
BlogPost(Warning warning);
BlogPost(Func<WeblogPost> corePostLoader, WeblogPost originalPost);
BlogPost(ICommentService commentService, ILanguageService languageService, IFeaturedContentApiService featureService, IContextService contextService, ISecurityService securityService, Func<WeblogPost> corePostLoader, WeblogPost originalPost);
Application Application { get; }
User Author { get; set; }
int? BlogId { get; set; }
int? CommentCount { get; set; }
Guid ContentId { get; set; }
User CreatedUser { get; }
IList<Error> Errors { get; }
string Excerpt { get; set; }
int? ExcerptSize { get; set; }
ApiList<ExtendedAttribute> ExtendedAttributes { get; set; }
string FeaturedImage { get; set; }
MediaFile File { get; set; }
bool? GeneratePostSummary { get; set; }
int? GroupId { get; set; }
bool? HasPendingChanges { get; set; }
int? Id { get; set; }
bool? IsApproved { get; set; }
bool? IsExternal { get; set; }
bool? IsFeatured { get; set; }
bool? IsLocked { get; set; }
bool? IsPostEnabled { get; set; }
string MetaDescription { get; set; }
string MetaKeywords { get; set; }
string MetaTitle { get; set; }
string OpenGraphDescription { get; set; }
MediaFile OpenGraphImage { get; set; }
string OpenGraphTitle { get; set; }
string PostImageAlternateText { get; set; }
MediaFile PostImageFile { get; set; }
string PostImageUrl { get; set; }
DateTime? PublishedDate { get; set; }
string SearchUniqueId { get; }
string Slug { get; set; }
IList<string> Tags { get; set; }
string Title { get; set; }
string TitleUrl { get; set; }
string Url { get; set; }
bool? UsePostSummary { get; set; }
int? Views { get; set; }
IList<Warning> Warnings { get; }
string Body();
string Body(string postTarget);
bool HasErrors();
bool HasWarnings();
bool HasWarningsOrErrors();
void ThrowErrors();
}
Constructors
BlogPost();
BlogPost(Func<WeblogPost> corePostLoader);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| corePostLoader | Func<WeblogPost> | Core Post Loader | Required |
BlogPost(AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| additionalInfo | AdditionalInfo | Additional Info | Required |
BlogPost(Error error);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| error | Error | Error | Required |
BlogPost(Warning warning);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| warning | Warning | Warning | Required |
BlogPost(Func<WeblogPost> corePostLoader, WeblogPost originalPost);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| corePostLoader | Func<WeblogPost> | Core Post Loader | Required | ||
| originalPost | WeblogPost | Original Post | Required |
BlogPost(ICommentService commentService, ILanguageService languageService, IFeaturedContentApiService featureService, IContextService contextService, ISecurityService securityService, Func<WeblogPost> corePostLoader, WeblogPost originalPost);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| commentService | ICommentService | Comment Service | Required | ||
| languageService | ILanguageService | Language Service | Required | ||
| featureService | IFeaturedContentApiService | Feature Service | Required | ||
| contextService | IContextService | Context Service | Required | ||
| securityService | ISecurityService | Security Service | Required | ||
| corePostLoader | Func<WeblogPost> | Core Post Loader | Required | ||
| originalPost | WeblogPost | Original Post | Required |
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| Application | Application | |||
| Author | User | |||
| BlogId | int? | |||
| CommentCount | int? | |||
| ContentId | Guid | A Guid uniquely identifying the content. | ||
| CreatedUser | User | |||
| Errors | IList<Error> | |||
| Excerpt | string | |||
| ExcerptSize | int? | |||
| ExtendedAttributes | ApiList<ExtendedAttribute> | |||
| FeaturedImage | string | |||
| File | MediaFile | |||
| GeneratePostSummary | bool? | |||
| GroupId | int? | |||
| HasPendingChanges | bool? | |||
| Id | int? | |||
| IsApproved | bool? | |||
| IsExternal | bool? | |||
| IsFeatured | bool? | |||
| IsLocked | bool? | |||
| IsPostEnabled | bool? | |||
| MetaDescription | string | |||
| MetaKeywords | string | |||
| MetaTitle | string | |||
| OpenGraphDescription | string | |||
| OpenGraphImage | MediaFile | |||
| OpenGraphTitle | string | |||
| PostImageAlternateText | string | |||
| PostImageFile | MediaFile | |||
| PostImageUrl | string | |||
| PublishedDate | DateTime? | |||
| SearchUniqueId | string | |||
| Slug | string | |||
| Tags | IList<string> | |||
| Title | string | |||
| TitleUrl | string | |||
| Url | string | A Url to the content on the site. | ||
| UsePostSummary | bool? | |||
| Views | int? | |||
| Warnings | IList<Warning> |