Content created on the site must implement this interface for the social services to support it.
StatusMessage is defined in the Telligent.Evolution.Extensibility.Api.Entities.Version1 namespace.
Definition
class StatusMessage : ApiEntity, IApiEntity, IAuditable, IFileReviewableContent, ITextReviewableContent
{
StatusMessage();
StatusMessage(ICommentService commentService);
StatusMessage(AdditionalInfo additionalInfo);
StatusMessage(Error error);
StatusMessage(Warning warning);
StatusMessage(ICommentService commentService, IResourceService resourceManager);
StatusMessage(IList<Warning> warnings, IList<Error> errors);
Application Application { get; }
string AttachedUrl { get; set; }
User Author { get; set; }
string Body { get; set; }
Guid ContentId { get; }
DateTime? CreatedDate { get; set; }
IList<Error> Errors { get; }
Group Group { get; set; }
Guid? Id { get; set; }
bool IsPublished { get; set; }
DateTime? LastUpdate { get; set; }
string RenderedBody { get; set; }
IList<ReplyMessage> Replies { get; set; }
int ReplyCount { get; set; }
string Url { get; set; }
IList<Warning> Warnings { get; }
bool HasErrors();
bool HasWarnings();
bool HasWarningsOrErrors();
string Message(string target);
void ThrowErrors();
}
Constructors
StatusMessage();
StatusMessage(ICommentService commentService);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| commentService | ICommentService | Comment Service | Required |
StatusMessage(AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| additionalInfo | AdditionalInfo | Additional Info | Required |
StatusMessage(Error error);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| error | Error | Error | Required |
StatusMessage(Warning warning);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| warning | Warning | Warning | Required |
StatusMessage(ICommentService commentService, IResourceService resourceManager);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| commentService | ICommentService | Comment Service | Required | ||
| resourceManager | IResourceService | Resource Manager | Required |
StatusMessage(IList<Warning> warnings, IList<Error> errors);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| warnings | IList<Warning> | Warnings | Required | ||
| errors | IList<Error> | Errors | Required |
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| Application | Application | |||
| AttachedUrl | string | |||
| Author | User | |||
| Body | string | |||
| ContentId | Guid | A Guid uniquely identifying the content. | ||
| CreatedDate | DateTime? | |||
| Errors | IList<Error> | |||
| Group | Group | |||
| Id | Guid? | |||
| IsPublished | bool | |||
| LastUpdate | DateTime? | |||
| RenderedBody Obsolete | string | Obsolete in 12: Use Message(target) instead. | ||
| Replies Obsolete | IList<ReplyMessage> | Obsolete in 10: Use Comments Api instead. | ||
| ReplyCount | int | |||
| Url | string | A Url to the content on the site. | ||
| Warnings | IList<Warning> |