Content created on the site must implement this interface for the social services to support it.
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
AllowMultipleVotes | bool | |||
ApplicationId | Guid | A Guid uniquely identifying the application. | ||
ApplicationKey | string | |||
ApplicationTypeId | Guid | A Guid identifying the type of application. All applications of the same type (i.e. wiki) will have the same value here. | ||
AvatarUrl | string | Url to an image particular to the content or content type. If none, return null. | ||
ContentId | Guid | A Guid uniquely identifying the content. | ||
CreatedDate | DateTime | The date the content was created. | ||
Errors | IList<Error> | |||
Group | Group | |||
Id | Guid | |||
IsEnabled | bool | A flag representing whether the content is enabled. This can be a wrapper for approval states, etc. | ||
IsModerated | bool | |||
LastPostDate | DateTime? | |||
MaximumVotesPerIdea | int? | |||
MaximumVotesPerUser | int? | |||
Name | string | |||
RequiresCategory | bool | |||
SearchUniqueId | string | |||
TotalPosts | int | |||
Url | string | A Url to the content on the site. | ||
Warnings | IList<Warning> |
Methods
Description
Usage
#set($stringResponse = $challenge.Description())
Return Type
string
Description
Usage
#set($stringResponse = $challenge.Description($target))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
target | string | Target | Required |
Return Type
string
HasErrors
Usage
#set($booleanResponse = $challenge.HasErrors())
Return Type
bool
HasWarnings
Usage
#set($booleanResponse = $challenge.HasWarnings())
Return Type
bool
HasWarningsOrErrors
Usage
#set($booleanResponse = $challenge.HasWarningsOrErrors())
Return Type
bool
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.
Usage
#set($stringResponse = $challenge.HtmlDescription($target))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
target | string | Target | Required |
Return Type
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.
Usage
#set($stringResponse = $challenge.HtmlName($target))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
target | string | Target | Required |
Return Type
string
ThrowErrors
Usage
$challenge.ThrowErrors()