Content created on the site must implement this interface for the social services to support it.
Properties
| Name | Access | Type | Description |
|---|---|---|---|
| AllowMultipleVotes | Read | Boolean | Allow Multiple Votes |
| ApplicationId | Read | Guid | A Guid uniquely identifying the application. |
| ApplicationKey | Read | String | Application Key |
| ApplicationTypeId | Read | Guid | A Guid identifying the type of application. All applications of the same type (i.e. wiki) will have the same value here. |
| AvatarUrl | Read | String | Url to an image particular to the content or content type. If none, return null. |
| ContentId | Read | Guid | A Guid uniquely identifying the content. |
| CreatedDate | Read | DateTime | The date the content was created. |
| Errors | Read | List of Error | Errors |
| Group | Read | Group | Group |
| Id | Read | Guid | Id |
| IsEnabled | Read | Boolean | A flag representing whether the content is enabled. This can be a wrapper for approval states, etc. |
| IsModerated | Read | Boolean | Is Moderated |
| LastPostDate | Read | Nullable of DateTime | Last Post Date |
| MaximumVotesPerIdea | Read | Nullable of Number | Maximum Votes Per Idea |
| MaximumVotesPerUser | Read | Nullable of Number | Maximum Votes Per User |
| Name | Read | String | Name |
| RequiresCategory | Read | Boolean | Requires Category |
| SearchUniqueId | Read | String | Search Unique Id |
| TotalPosts | Read | Number | Total Posts |
| Url | Read | String | A Url to the content on the site. |
| Warnings | Read | List of Warning | Warnings |
Methods
Description
Description Overload 1
Velocity
#set($stringResponse = $challenge.Description())
JavaScript
var stringResponse = challenge.Description();
Description Overload 2
Velocity
#set($stringResponse = $challenge.Description($target))
JavaScript
var stringResponse = challenge.Description(target);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| target | String | Target | Required |
Returns
HasErrors
Velocity
#set($booleanResponse = $challenge.HasErrors())
JavaScript
var booleanResponse = challenge.HasErrors();
Returns
HasWarnings
Velocity
#set($booleanResponse = $challenge.HasWarnings())
JavaScript
var booleanResponse = challenge.HasWarnings();
Returns
HasWarningsOrErrors
Velocity
#set($booleanResponse = $challenge.HasWarningsOrErrors())
JavaScript
var booleanResponse = challenge.HasWarningsOrErrors();
Returns
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 = $challenge.HtmlDescription($target))
JavaScript
var stringResponse = challenge.HtmlDescription(target);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| target | String | Target | Required |
Returns
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 = $challenge.HtmlName($target))
JavaScript
var stringResponse = challenge.HtmlName(target);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| target | String | Target | Required |
Returns
ThrowErrors
Velocity
$challenge.ThrowErrors()
JavaScript
challenge.ThrowErrors();
Returns
NothingToString
Velocity
#set($stringResponse = $challenge.ToString())
JavaScript
var stringResponse = challenge.ToString();