This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IForumThreadVotes>()
and is defined in Telligent.Evolution.Forums.dll
Events
Events.AfterCreate
Handler
void ForumThreadVoteAfterCreateEventHandler(ForumThreadVoteAfterCreateEventArgs e);
Events.AfterDelete
Handler
void ForumThreadVoteAfterDeleteEventHandler(ForumThreadVoteAfterDeleteEventArgs e);
Events.AfterUpdate
Handler
void ForumThreadVoteAfterUpdateEventHandler(ForumThreadVoteAfterUpdateEventArgs e);
Events.BeforeCreate
Handler
void ForumThreadVoteBeforeCreateEventHandler(ForumThreadVoteBeforeCreateEventArgs e);
Events.BeforeDelete
Handler
void ForumThreadVoteBeforeDeleteEventHandler(ForumThreadVoteBeforeDeleteEventArgs e);
Events.BeforeUpdate
Handler
void ForumThreadVoteBeforeUpdateEventHandler(ForumThreadVoteBeforeUpdateEventArgs e);
Methods
ForumThreadVote Create(int threadId, ForumThreadVoteCreateOptions options = null);
Votes for a thread for the accessing user
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
threadId | int | Thread Id | Required | ||
options | ForumThreadVoteCreateOptions | Optional parameter names are: VoteType and Value | Optional |
Return Type
AdditionalInfo Delete(int threadId, ForumThreadVoteDeleteOptions options = null);
Removes a vote for a thread for the accessing user
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
threadId | int | Thread Id | Required | ||
options | ForumThreadVoteDeleteOptions | Optional Parameter name: VoteType | Optional |
Return Type
ForumThreadVote Get(int threadId, ForumThreadVoteGetOptions options = null);
Gets an existing vote for a thread for the accessing user
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
threadId | int | Thread Id | Required | ||
options | ForumThreadVoteGetOptions | OptionalParameter names are: VoteType and Value | Optional |
Return Type
PagedList<ForumThreadVote> List(ForumThreadVoteListOptions options);
Lists thread votes
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | ForumThreadVoteListOptions | Options include: ThreadId, UserId, SortBy, SortOrder, PageSize, PageIndex | Required |
Return Type
ForumThreadVote Update(int threadId, ForumThreadVoteUpdateOptions options = null);
Updates an existing vote for a thread for the accessing user
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
threadId | int | Thread Id | Required | ||
options | ForumThreadVoteUpdateOptions | Optional parameter names are: VoteType and Value | Optional |