Webiant Logo Webiant Logo
  1. No results found.

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

CampaignModel.cs

using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Messages;

/// 
/// Represents a campaign model
/// 
public partial record CampaignModel : BaseNopEntityModel
{
    #region Ctor

    public CampaignModel()
    {
        AvailableStores = new List();
        AvailableCustomerRoles = new List();
        AvailableEmailAccounts = new List();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.Name")]
    public string Name { get; set; }

    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.Subject")]
    public string Subject { get; set; }

    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.Body")]
    public string Body { get; set; }

    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.Store")]
    public int StoreId { get; set; }
    public IList AvailableStores { get; set; }

    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.CustomerRole")]
    public int CustomerRoleId { get; set; }
    public IList AvailableCustomerRoles { get; set; }

    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.CreatedOn")]
    public DateTime CreatedOn { get; set; }

    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.DontSendBeforeDate")]
    [UIHint("DateTimeNullable")]
    public DateTime? DontSendBeforeDate { get; set; }

    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.AllowedTokens")]
    public string AllowedTokens { get; set; }

    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.EmailAccount")]
    public int EmailAccountId { get; set; }
    public IList AvailableEmailAccounts { get; set; }

    [DataType(DataType.EmailAddress)]
    [NopResourceDisplayName("Admin.Promotions.Campaigns.Fields.TestEmail")]
    public string TestEmail { get; set; }

    #endregion
}