Content created on the site must implement this interface for the social services to support it.
Properties
Name | Access | Type | Description |
---|---|---|---|
Application | Read | IApplication | The application in which the IContent is located. |
Author | Read | User | Author |
AvatarUrl | Read | String | Url to an image particular to the content or content type. If none, return null. |
Body | Read | String | Body |
ContentId | Read | Guid | A Guid uniquely identifying the content. |
ContentTypeId | Read | Guid | A Guid identifying the type of content. All content of the same type (i.e. wiki page) will have the same value here. |
Conversation | Read | Conversation | Conversation |
ConversationId | Read | Nullable of Guid | Conversation Id |
CreatedByUserId | Read | Nullable of Int32 | The Id of the user who originated the content. |
CreatedDate | Read | Nullable of DateTime | The date the content was created. |
Errors | Read | IList of Error | Errors |
Id | Read | Nullable of Guid | Id |
IsEnabled | Read | Boolean | A flag representing whether the content is enabled. This can be a wrapper for approval states, etc. |
RenderedBody | Read | String | Rendered Body |
Subject | Read | String | Subject |
Url | Read | String | A Url to the content on the site. |
Warnings | Read | IList of Warning | Warnings |
Methods
HasErrors
Velocity
#set($booleanResponse = $conversationMessage.HasErrors())
JavaScript
var booleanResponse = conversationMessage.HasErrors();
Returns
Boolean
HasWarnings
Velocity
#set($booleanResponse = $conversationMessage.HasWarnings())
JavaScript
var booleanResponse = conversationMessage.HasWarnings();
Returns
Boolean
HasWarningsOrErrors
Velocity
#set($booleanResponse = $conversationMessage.HasWarningsOrErrors())
JavaScript
var booleanResponse = conversationMessage.HasWarningsOrErrors();
Returns
Boolean
HtmlDescription
Return the Html encoded description of the content (the body, for example). Possible values for “target” are “Web”, “Email”, “WebServices”, or “raw”. When “raw” is specified as the target, the description should not be encoded or have any special rendering done to it.
Velocity
#set($stringResponse = $conversationMessage.HtmlDescription($target))
JavaScript
var stringResponse = conversationMessage.HtmlDescription(target);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
target | String | Target | Required |
Returns
String
HtmlName
Return the Html encoded name of the content (the subject for example). Possible values for “target” are “Web”, “Email”, or “raw”. When “raw” is specified as the target, the name should not be encoded.
Velocity
#set($stringResponse = $conversationMessage.HtmlName($target))
JavaScript
var stringResponse = conversationMessage.HtmlName(target);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
target | String | Target | Required |
Returns
String
ThrowErrors
Velocity
$conversationMessage.ThrowErrors()
JavaScript
conversationMessage.ThrowErrors();