This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.ICommentVotes>()
and is defined in Telligent.Evolution.Platform.dll
Events
Events.AfterCreate
Handler
void CommentVoteAfterCreateEventHandler(CommentVoteAfterCreateEventArgs e);
Events.AfterDelete
Handler
void CommentVoteAfterDeleteEventHandler(CommentVoteAfterDeleteEventArgs e);
Events.AfterUpdate
Handler
void CommentVoteAfterUpdateEventHandler(CommentVoteAfterUpdateEventArgs e);
Events.BeforeCreate
Handler
void CommentVoteBeforeCreateEventHandler(CommentVoteBeforeCreateEventArgs e);
Events.BeforeDelete
Handler
void CommentVoteBeforeDeleteEventHandler(CommentVoteBeforeDeleteEventArgs e);
Events.BeforeUpdate
Handler
void CommentVoteBeforeUpdateEventHandler(CommentVoteBeforeUpdateEventArgs e);
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
DataTypeId Obsolete | Guid | Migrate usage to scripted email or scripted plugins. |
Methods
CommentVote Create(Guid commentId, bool value);
Creates a vote on a comment
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Id of the comment | Required | ||
value | bool | Vote Value: Up (true) or Down (false) | Required |
Return Type
AdditionalInfo Delete(Guid commentId, int userId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Id of the comment | Required | ||
userId | int | Id of voting user | Required |
Return Type
CommentVote Get(Guid commentId, int userId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Id of the comment | Required | ||
userId | int | Id of voting user | Required |
Return Type
PagedList<CommentVote> Get(CommentVoteGetOptions options = null);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | CommentVoteGetOptions | options include: CommentId, UserId, Value, PageSize, PageIndex | Optional |
Return Type
CommentVote Update(Guid commentId, bool value);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Id of the comment | Required | ||
value | bool | Vote Value: Up (true) or Down (false) | Required |