This interface provides support for bookmarking content and defines the methods needed to secure bookmarks.
IBookmarkableContentType is defined in the Telligent.Evolution.Extensibility.Content.Version1 namespace of Telligent.Evolution.Platform.dll
Definition
interface IBookmarkableContentType : IContentType, IPlugin { bool SupportsBookmarks { get; } bool CanBookmark(Guid contentId, int userId); bool CanUnBookmark(Guid contentId, int userId); }
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| SupportsBookmarks | bool | Returns whether any content of this content type can be bookmarked |
Methods
bool CanBookmark(Guid contentId, int userId);
Returns whether the user can bookmark the given content.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| contentId | Guid | Content Id | Required | ||
| userId | int | User Id | Required |
Return Type
bool
bool CanUnBookmark(Guid contentId, int userId);
Returns whether the user can unbookmark the given content.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| contentId | Guid | Content Id | Required | ||
| userId | int | User Id | Required |
Return Type
bool