Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

1.9 KB
Raw Blame
using Grand.Domain.Localization;
using Grand.Domain.Stores;

namespace Grand.Domain.Messages;

/// <summary>
///     Represents a message template
/// </summary>
public class MessageTemplate : BaseEntity, ITranslationEntity, IStoreLinkEntity
{
    /// <summary>
    ///     Gets or sets the name
    /// </summary>
    public string Name { get; set; }

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

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

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

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

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

    /// <summary>
    ///     Gets or sets the period of message delay
    /// </summary>
    public MessageDelayPeriod DelayPeriodId { get; set; }

    /// <summary>
    ///     Gets or sets the download identifier of attached file
    /// </summary>
    public string AttachedDownloadId { get; set; }

    /// <summary>
    ///     Gets or sets the used email account identifier
    /// </summary>
    public string EmailAccountId { get; set; }

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

    public IList<string> Stores { get; set; } = new List<string>();


    /// <summary>
    ///     Gets or sets the collection of locales
    /// </summary>
    public IList<TranslationEntity> Locales { get; set; } = new List<TranslationEntity>();
}