Interface ISubscriptionTypeController
This controller is responsible to manage the subscription types.
Namespace: DotNetNuke.Services.Social.Subscriptions
Assembly: DotNetNuke.dll
Syntax
public interface ISubscriptionTypeController
Methods
| Improve this Doc View SourceAddSubscriptionType(SubscriptionType)
Creates a new Subscription Type. If the operation succeed the SubscriptionTypeId property of the Subscription entity will be filled up.
Declaration
void AddSubscriptionType(SubscriptionType subscriptionType)
Parameters
Type | Name | Description |
---|---|---|
SubscriptionType | subscriptionType | Subscription Type. |
DeleteSubscriptionType(SubscriptionType)
Deletes a Subscription Type from the system.
Declaration
void DeleteSubscriptionType(SubscriptionType subscriptionType)
Parameters
Type | Name | Description |
---|---|---|
SubscriptionType | subscriptionType | Subscription Type. |
GetSubscriptionType(Func<SubscriptionType, Boolean>)
Retrieves a Single Subscription Type that match the where predicate.
Declaration
SubscriptionType GetSubscriptionType(Func<SubscriptionType, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<SubscriptionType, System.Boolean> | predicate | Where Predicate. |
Returns
Type | Description |
---|---|
SubscriptionType | Subscription Type. |
GetSubscriptionTypes()
Retrieves all the Subscription Type.
Declaration
IEnumerable<SubscriptionType> GetSubscriptionTypes()
Returns
Type | Description |
---|---|
IEnumerable<SubscriptionType> | Subscription Types collection. |
GetSubscriptionTypes(Func<SubscriptionType, Boolean>)
Retrieves a set of Subscription Types specifying a where predicate.
Declaration
IEnumerable<SubscriptionType> GetSubscriptionTypes(Func<SubscriptionType, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<SubscriptionType, System.Boolean> | predicate | Where predicate. |
Returns
Type | Description |
---|---|
IEnumerable<SubscriptionType> | Subscription Type collection. |