This interface defines methods used to secure ratings.
IRateableContentType
is defined in the Telligent.Evolution.Extensibility.Content.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface IRateableContentType : IContentType, IPlugin { bool CanDeleteRating(Guid contentId, int ratingUserId, int userId); bool CanRate(Guid contentId, int userId); }
Methods
bool CanDeleteRating(Guid contentId, int ratingUserId, int userId);
Returns whether the user can delete a rating on a piece of content. The user who created the rating is specified as ratingUserId.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
ratingUserId | int | Rating User Id | Required | ||
userId | int | User Id | Required |
Return Type
bool
bool CanRate(Guid contentId, int userId);
Returns whether the user can rate the given content or not.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
userId | int | User Id | Required |
Return Type
bool