Class EmailStatisticsTab
- Namespace
- Kentico.Xperience.Admin.DigitalMarketing.UIPages
- Assembly
- Kentico.Xperience.Admin.DigitalMarketing.dll
Email statistics page.
public sealed class EmailStatisticsTab : Page<EmailStatisticsTemplateClientProperties>, IPage
- Inheritance
-
objectEmailStatisticsTab
- Implements
- Inherited Members
- Extension Methods
Constructors
EmailStatisticsTab(IInfoProvider<EmailStatisticsInfo>, IInfoProvider<EmailConfigurationInfo>, IEmailStatisticsCalculator, IEventLogService, IInfoProvider<SendConfigurationInfo>, IInfoProvider<ScheduledTaskConfigurationInfo>, IEmailConfigurationAdminModelRetriever, IEmailDetailedStatusRetriever, IInfoProvider<ContentLanguageInfo>)
Initializes a new instance of the EmailStatisticsTab class.
public EmailStatisticsTab(IInfoProvider<EmailStatisticsInfo> emailStatisticsInfoProvider, IInfoProvider<EmailConfigurationInfo> emailConfigurationInfoProvider, IEmailStatisticsCalculator statisticsCalculator, IEventLogService eventLogService, IInfoProvider<SendConfigurationInfo> sendConfigurationInfoProvider, IInfoProvider<ScheduledTaskConfigurationInfo> taskInfoProvider, IEmailConfigurationAdminModelRetriever emailConfigurationAdminModelRetriever, IEmailDetailedStatusRetriever emailDetailedStatusRetriever, IInfoProvider<ContentLanguageInfo> contentLanguageInfoProvider)
Parameters
emailStatisticsInfoProvider
IInfoProvider<EmailStatisticsInfo>emailConfigurationInfoProvider
IInfoProvider<EmailConfigurationInfo>statisticsCalculator
IEmailStatisticsCalculatoreventLogService
IEventLogServicesendConfigurationInfoProvider
IInfoProvider<SendConfigurationInfo>taskInfoProvider
IInfoProvider<ScheduledTaskConfigurationInfo>emailConfigurationAdminModelRetriever
IEmailConfigurationAdminModelRetrieveremailDetailedStatusRetriever
IEmailDetailedStatusRetrievercontentLanguageInfoProvider
IInfoProvider<ContentLanguageInfo>
Properties
ContentLanguageIdentifier
Content language identifier.
[PageParameter(typeof(ContentLanguageModelBinder), typeof(EmailChannelContentLanguage))]
public ContentLanguageUrlIdentifier ContentLanguageIdentifier { get; set; }
Property Value
EmailConfigurationID
Email configuration identifier.
[PageParameter(typeof(IntPageModelBinder), typeof(EmailEditLayout))]
public int EmailConfigurationID { get; set; }
Property Value
- int
Methods
ConfigureTemplateProperties(EmailStatisticsTemplateClientProperties)
Gets the object representing client side template properties.
public override Task<EmailStatisticsTemplateClientProperties> ConfigureTemplateProperties(EmailStatisticsTemplateClientProperties properties)
Parameters
properties
EmailStatisticsTemplateClientPropertiesInitialized properties object.
Returns
GetStatusModel(CancellationToken)
Endpoint that returns status of the email.
public Task<ICommandResponse<DetailedStatusModel>> GetStatusModel(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
LoadEmailStatisticsConfiguration(CancellationToken)
Returns LoadEmailStatisticsConfigurationCommandResult containing data for statistics tab.
public Task<ICommandResponse<LoadEmailStatisticsConfigurationCommandResult>> LoadEmailStatisticsConfiguration(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenCancellation token.
Returns
RecalculateStatistics(CancellationToken)
Recalculates the statistics.
public Task<ICommandResponse> RecalculateStatistics(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
- Task<ICommandResponse>