Content created on the site must implement this interface for the social services to support it.
Comment is defined in the Telligent.Evolution.Extensibility.Api.Entities.Version1 namespace.
Definition
class Comment : LazyContentApiEntityWithExtendedAttributes<Comment>, IApiEntity, IAuthorIpTrackingContent, IExtendedAuditable
{
Comment();
Comment(AdditionalInfo additionalInfo);
Comment(Error error);
Comment(Warning warning);
Comment(IUserService userService, IContentService contentService, IContents contents, IResourceService resourceManager, IUrlManipulation urlManipulation);
Guid CommentContentTypeId { get; }
Guid CommentId { get; set; }
Guid? CommentTypeId { get; set; }
Content Content { get; }
Guid ContentId { get; set; }
Guid ContentTypeId { get; set; }
DateTime CreatedDate { get; set; }
IList<Error> Errors { get; }
ApiList<ExtendedAttribute> ExtendedAttributes { get; set; }
string IPAddress { get; set; }
bool IsApproved { get; set; }
bool IsDeleted { get; }
bool IsFeatured { get; set; }
int NoVotes { get; }
Guid? ParentCommentId { get; set; }
int ReplyCount { get; set; }
int Score { get; }
int SortOrder { get; set; }
int TotalVotes { get; }
DateTime UpdatedDate { get; set; }
int UpdatedUserId { get; set; }
string Url { get; set; }
User User { get; }
int UserId { get; set; }
IList<Warning> Warnings { get; }
int YesVotes { get; }
string Body();
string Body(string target);
bool HasErrors();
bool HasWarnings();
bool HasWarningsOrErrors();
void ThrowErrors();
}
Constructors
Comment();
Comment(AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| additionalInfo | AdditionalInfo | Additional Info | Required |
Comment(Error error);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| error | Error | Error | Required |
Comment(Warning warning);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| warning | Warning | Warning | Required |
Comment(IUserService userService, IContentService contentService, IContents contents, IResourceService resourceManager, IUrlManipulation urlManipulation);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| userService | IUserService | User Service | Required | ||
| contentService | IContentService | Content Service | Required | ||
| contents | IContents | Contents | Required | ||
| resourceManager | IResourceService | Resource Manager | Required | ||
| urlManipulation | IUrlManipulation | Url Manipulation | Required |
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| CommentContentTypeId | Guid | |||
| CommentId | Guid | |||
| CommentTypeId | Guid? | |||
| Content | Content | |||
| 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. | ||
| CreatedDate | DateTime | The date the content was created. | ||
| Errors | IList<Error> | |||
| ExtendedAttributes | ApiList<ExtendedAttribute> | |||
| IPAddress | string | |||
| IsApproved | bool | |||
| IsDeleted | bool | |||
| IsFeatured | bool | |||
| NoVotes | int | |||
| ParentCommentId | Guid? | |||
| ReplyCount | int | |||
| Score | int | |||
| SortOrder | int | |||
| TotalVotes | int | |||
| UpdatedDate | DateTime | |||
| UpdatedUserId | int | |||
| Url | string | A Url to the content on the site. | ||
| User | User | |||
| UserId | int | |||
| Warnings | IList<Warning> | |||
| YesVotes | int |