This interface defines methods used to secure subscriptions.
ISubscribableContentType is defined in the Telligent.Evolution.Extensibility.Content.Version1 namespace of Telligent.Evolution.Platform.dll
Definition
interface ISubscribableContentType : IContentType, IPlugin { bool SupportsSubscriptions { get; } bool CanDeleteSubscription(Guid contentId, int subscribedUserId, int userId); bool CanSubscribe(Guid contentId, int userId); }
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| SupportsSubscriptions | bool | Returns whether any content of this content type can be subscribed to |
Methods
bool CanDeleteSubscription(Guid contentId, int subscribedUserId, int userId);
Returns whether the user can delete a subscription to a piece of content. The user who created the subscription is specified as subscribedUserId.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| contentId | Guid | Content Id | Required | ||
| subscribedUserId | int | Subscribed User Id | Required | ||
| userId | int | User Id | Required |
Return Type
bool
bool CanSubscribe(Guid contentId, int userId);
Returns whether the user can subscribe to 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