Table of Contents

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
object
EmailStatisticsTab
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 IEmailStatisticsCalculator
eventLogService IEventLogService
sendConfigurationInfoProvider IInfoProvider<SendConfigurationInfo>
taskInfoProvider IInfoProvider<ScheduledTaskConfigurationInfo>
emailConfigurationAdminModelRetriever IEmailConfigurationAdminModelRetriever
emailDetailedStatusRetriever IEmailDetailedStatusRetriever
contentLanguageInfoProvider IInfoProvider<ContentLanguageInfo>

Properties

ContentLanguageIdentifier

Content language identifier.

[PageParameter(typeof(ContentLanguageModelBinder), typeof(EmailChannelContentLanguage))]
public ContentLanguageUrlIdentifier ContentLanguageIdentifier { get; set; }

Property Value

ContentLanguageUrlIdentifier

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 EmailStatisticsTemplateClientProperties

Initialized properties object.

Returns

Task<EmailStatisticsTemplateClientProperties>

GetStatusModel(CancellationToken)

Endpoint that returns status of the email.

public Task<ICommandResponse<DetailedStatusModel>> GetStatusModel(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task<ICommandResponse<DetailedStatusModel>>

LoadEmailStatisticsConfiguration(CancellationToken)

Returns LoadEmailStatisticsConfigurationCommandResult containing data for statistics tab.

public Task<ICommandResponse<LoadEmailStatisticsConfigurationCommandResult>> LoadEmailStatisticsConfiguration(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ICommandResponse<LoadEmailStatisticsConfigurationCommandResult>>

RecalculateStatistics(CancellationToken)

Recalculates the statistics.

public Task<ICommandResponse> RecalculateStatistics(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task<ICommandResponse>