Content created on the site must implement this interface for the social services to support it.
Idea is defined in the Telligent.Evolution.Extensibility.Ideation.Api namespace.
Definition
class Idea : ApiEntity, IApiEntity, IExtendedAuditable, ITextReviewableContent
{
Idea();
Idea(AdditionalInfo additionalInfo);
Idea(IList<Warning> warnings, IList<Error> errors);
User Author { get; }
IdeaCategory Category { get; }
Challenge Challenge { get; }
Guid ContentId { get; }
DateTime CreatedDate { get; }
IdeaStatus CurrentStatus { get; }
IList<Error> Errors { get; }
Guid Id { get; }
bool IsEnabled { get; }
bool IsSuspectedAbusive { get; }
DateTime LastUpdatedDate { get; }
string Name { get; }
int NoVotes { get; }
int Score { get; }
string SearchUniqueId { get; }
Status Status { get; }
User StatusAuthor { get; }
DateTime? StatusDate { get; }
int TotalVotes { get; }
string Url { get; }
string UrlKey { get; }
IList<Warning> Warnings { get; }
int YesVotes { get; }
string Description();
string Description(string target);
bool HasErrors();
bool HasWarnings();
bool HasWarningsOrErrors();
string HtmlDescription(string target);
string StatusNotes();
string StatusNotes(string target);
void ThrowErrors();
}
Constructors
Idea();
Idea(AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| additionalInfo | AdditionalInfo | Additional Info | Required |
Idea(IList<Warning> warnings, IList<Error> errors);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| warnings | IList<Warning> | Warnings | Required | ||
| errors | IList<Error> | Errors | Required |
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| Author | User | |||
| Category | IdeaCategory | |||
| Challenge | Challenge | |||
| ContentId | Guid | A Guid uniquely identifying the content. | ||
| CreatedDate | DateTime | The date the content was created. | ||
| CurrentStatus | IdeaStatus | |||
| Errors | IList<Error> | |||
| Id | Guid | |||
| IsEnabled | bool | A flag representing whether the content is enabled. This can be a wrapper for approval states, etc. | ||
| IsSuspectedAbusive | bool | |||
| LastUpdatedDate | DateTime | |||
| Name | string | |||
| NoVotes | int | |||
| Score | int | |||
| SearchUniqueId | string | |||
| Status | Status | |||
| StatusAuthor | User | |||
| StatusDate | DateTime? | |||
| TotalVotes | int | |||
| Url | string | A Url to the content on the site. | ||
| UrlKey | string | |||
| Warnings | IList<Warning> | |||
| YesVotes | int |
Methods
string Description();
Return Type
string Description(string target);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| target | string | Target | Required |
Return Type
bool HasErrors();
Return Type
bool HasWarnings();
Return Type
bool HasWarningsOrErrors();
Return Type
string HtmlDescription(string target);
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.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| target | string | Target | Required |
Return Type
string StatusNotes();
Return Type
string StatusNotes(string target);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| target | string | Target | Required |