This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IForumThreads>()
Events
Events.AfterCreate
Handler
void ForumThreadAfterCreateEventHandler(ForumThreadAfterCreateEventArgs e);
Events.AfterDelete
Handler
void ForumThreadAfterDeleteEventHandler(ForumThreadAfterDeleteEventArgs e);
Events.AfterUpdate
Handler
void ForumThreadAfterUpdateEventHandler(ForumThreadAfterUpdateEventArgs e);
Events.BeforeCreate
Handler
void ForumThreadBeforeCreateEventHandler(ForumThreadBeforeCreateEventArgs e);
Events.BeforeDelete
Handler
void ForumThreadBeforeDeleteEventHandler(ForumThreadBeforeDeleteEventArgs e);
Events.BeforeUpdate
Handler
void ForumThreadBeforeUpdateEventHandler(ForumThreadBeforeUpdateEventArgs e);
Events.Render
Handler
void ForumThreadRenderEventHandler(ForumThreadRenderEventArgs e);
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| ContentTypeId | Guid | Forum Threads content type identifier |
Methods
bool AllowsReplies(Guid contentId);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| contentId | Guid | Content Id | Required |
Return Type
ForumThread Create(int forumId, string subject, string body, ForumThreadsCreateOptions options = null);
Creates a Forum Thread
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| forumId | int | Forum Id | Required | ||
| subject | string | Subject | Required | ||
| body | string | Body | Required | ||
| options | ForumThreadsCreateOptions | Optional parameter names are: IsSticky, StickyDate, PostDate, IsQuestion, IsLocked, SubscribeToThread, Tags, ContentType, FileName, FileData, FileStream, FileUrl, FileUploadContext, IsFeatured, FeaturedImage, IsAnonymous, ExtendedAttributes | Optional |
Return Type
AdditionalInfo Delete(int threadId, ForumThreadsDeleteOptions options = null);
Deletes a Forum Thread
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| threadId | int | Thread Id | Required | ||
| options | ForumThreadsDeleteOptions | Optional parameter names are: DeleteChildren, SendAuthorDeleteNotification, DeleteReason | Optional |
Return Type
AdditionalInfo DeleteWikiPageAssociation(int threadId);
Deletes an association with a wiki page if one exits
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| threadId | int | Thread Id | Required |
Return Type
ForumThread Get(int threadId, ForumThreadsGetOptions options = null);
Gets a Forum Thread
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| threadId | int | Thread Id | Required | ||
| options | ForumThreadsGetOptions | Optional parameter names are: ForumId | Optional |
Return Type
ForumThread Get(Guid contentId);
Gets a Forum Thread
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| contentId | Guid | Thread Content Id | Required |
Return Type
PagedList<ForumThread> List();
Lists Forum Threads
Return Type
PagedList<ForumThread> List(ForumThreadsListOptions options);
Lists Forum Threads
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| options | ForumThreadsListOptions | Optional parameter names are: ForumId, GroupId, ContentIds, SortBy, SortOrder, PopularOnly, IncludeSubGroups, PageSize, PageIndex, ForumThreadQueryType, IncludeDiscussions, IncludeQuestions. If left unspecified, sorting defaults to LastPost Ascending and ForumThreadQueryType defaults to All. | Required |
Return Type
void MarkAsRead(int threadId);
Mark the thread as read by the accessing user
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| threadId | int | Id of the forum thread | Required |
ForumThread Preview(int forumId, ForumThreadsPreviewOptions options = null);
Previews a thread before it is saved
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| forumId | int | Forum Id | Required | ||
| options | ForumThreadsPreviewOptions | Optional parameter names are: Subject, Body | Optional |
Return Type
void SetMuted(int threadId, bool mute);
Sets the muted status for the accessing user
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| threadId | int | Thread Id | Required | ||
| mute | bool | True to mute the thread, false to unmute | Required |
ForumThread Update(int threadId, ForumThreadsUpdateOptions options = null);
Updates a Forum Thread
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| threadId | int | Thread Id | Required | ||
| options | ForumThreadsUpdateOptions | Optional parameter names are: Subject, Body, IsSticky, StickyDate, PostDate, IsQuestion, IsLocked, SubscribeToThread, ContentType, FileName, FileData, FileStream, FileUploadContext, FileUrl, RemoveAttachment, Tags, IsFeatured, FeaturedImage, IsAnonymous, EditNotes, ExtendedAttributes | Optional |