Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

MessageTemplate.cs

using Nop.Core.Domain.Localization;
using Nop.Core.Domain.Stores;

namespace Nop.Core.Domain.Messages;

/// 
/// Represents a message template
/// 
public partial class MessageTemplate : BaseEntity, ILocalizedEntity, IStoreMappingSupported
{
    /// 
    /// Gets or sets the name
    /// 
    public string Name { get; set; }

    /// 
    /// Gets or sets the BCC Email addresses
    /// 
    public string BccEmailAddresses { get; set; }

    /// 
    /// Gets or sets the subject
    /// 
    public string Subject { get; set; }

    /// 
    /// Gets or sets the body
    /// 
    public string Body { get; set; }

    /// 
    /// Gets or sets a value indicating whether the template is active
    /// 
    public bool IsActive { get; set; }

    /// 
    /// Gets or sets the delay before sending message
    /// 
    public int? DelayBeforeSend { get; set; }

    /// 
    /// Gets or sets the period of message delay 
    /// 
    public int DelayPeriodId { get; set; }

    /// 
    /// Gets or sets the download identifier of attached file
    /// 
    public int AttachedDownloadId { get; set; }

    /// 
    /// Gets or sets a value indicating whether direct reply is allowed
    /// 
    public bool AllowDirectReply { get; set; }

    /// 
    /// Gets or sets the used email account identifier
    /// 
    public int EmailAccountId { get; set; }

    /// 
    /// Gets or sets a value indicating whether the entity is limited/restricted to certain stores
    /// 
    public bool LimitedToStores { get; set; }

    /// 
    /// Gets or sets the period of message delay
    /// 
    public MessageDelayPeriod DelayPeriod
    {
        get => (MessageDelayPeriod)DelayPeriodId;
        set => DelayPeriodId = (int)value;
    }
}