Content created on the site must implement this interface for the social services to support it.
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 |
Methods
Body
Usage
#set($stringResponse = $comment.Body())
Return Type
string
Body
Usage
#set($stringResponse = $comment.Body($target))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
target | string | Target | Required |
Return Type
string
HasErrors
Usage
#set($booleanResponse = $comment.HasErrors())
Return Type
bool
HasWarnings
Usage
#set($booleanResponse = $comment.HasWarnings())
Return Type
bool
HasWarningsOrErrors
Usage
#set($booleanResponse = $comment.HasWarningsOrErrors())
Return Type
bool
ThrowErrors
Usage
$comment.ThrowErrors()