Interface INewsletterMailingListService
A service that provides operations for managing newsletter mailing lists.
Namespace: DataWeb.Newsletter
Assembly: DataWeb.Core.dll
Syntax
public interface INewsletterMailingListService
Methods
GetActiveSubscriberCountAsync(string)
Gets the number of active subscribers for the mailing list with the specified name.
Declaration
Task<long> GetActiveSubscriberCountAsync(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the mailing list. |
Returns
Type | Description |
---|---|
Task<long> | The number of active subscribers for the mailing list with the specified name. |
GetActiveSubscribersAsync(string)
Gets all the active subscribers for the mailing list with the specified name.
Declaration
Task<IEnumerable<NewsletterSubscriber>> GetActiveSubscribersAsync(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the mailing list. |
Returns
Type | Description |
---|---|
Task<IEnumerable<NewsletterSubscriber>> | All the active subscribers for the mailing list with the specified name. |
GetMailingListAsync(NewsletterMailingListFilter)
Gets the mailing list that matches the specified filter.
Declaration
Task<NewsletterMailingListBase> GetMailingListAsync(NewsletterMailingListFilter filter)
Parameters
Type | Name | Description |
---|---|---|
NewsletterMailingListFilter | filter | The NewsletterMailingListFilter used to retrieve the mailing list. |
Returns
Type | Description |
---|---|
Task<NewsletterMailingListBase> | The mailing list that matches the specified filter. |
GetMailingListsAsync(NewsletterMailingListFilter)
Gets all the mailing lists that match the specified filter.
Declaration
Task<IEnumerable<NewsletterMailingListBase>> GetMailingListsAsync(NewsletterMailingListFilter filter)
Parameters
Type | Name | Description |
---|---|---|
NewsletterMailingListFilter | filter | The NewsletterMailingListFilter used to retrieve the mailing lists. |
Returns
Type | Description |
---|---|
Task<IEnumerable<NewsletterMailingListBase>> | The mailing lists that match the specified filter. |