Content created on the site must implement this interface for the social services to support it.
ThreadedComment is defined in the Telligent.Evolution.Extensibility.Api.Entities.Version1 namespace.
Definition
class ThreadedComment : Comment, IApiEntity, IAuthorIpTrackingContent, IExtendedAuditable { ThreadedComment(Comment comment, IDictionary<Guid,IList<Comment>> comments); int ChildCount { get; } ApiList<ThreadedComment> Children { get; } 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; } int EffectiveDepth { get; } 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 NextSiblingCount { get; } int NoVotes { get; } Guid? ParentCommentId { get; set; } int PreviousSiblingCount { get; } 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
ThreadedComment(Comment comment, IDictionary<Guid,IList<Comment>> comments);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| comment | Comment | Comment | Required | ||
| comments | IDictionary<Guid,IList<Comment>> | Comments | Required |
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| ChildCount | int | |||
| Children | ApiList<ThreadedComment> | |||
| 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. | ||
| EffectiveDepth | int | |||
| Errors | IList<Error> | |||
| ExtendedAttributes | ApiList<ExtendedAttribute> | |||
| IPAddress | string | |||
| IsApproved | bool | |||
| IsDeleted | bool | |||
| IsFeatured | bool | |||
| NextSiblingCount | int | |||
| NoVotes | int | |||
| ParentCommentId | Guid? | |||
| PreviousSiblingCount | int | |||
| 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 |