Webiant Logo Webiant Logo
  1. No results found.

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

MaintenanceModel.cs

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

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

public partial record MaintenanceModel : BaseNopModel
{
    public MaintenanceModel()
    {
        DeleteGuests = new();
        DeleteAbandonedCarts = new();
        DeleteExportedFiles = new();
        BackupFileSearchModel = new();
        DeleteAlreadySentQueuedEmails = new();
        DeleteMinificationFiles = new();
    }

    public DeleteGuestsModel DeleteGuests { get; set; }

    public DeleteAbandonedCartsModel DeleteAbandonedCarts { get; set; }

    public DeleteExportedFilesModel DeleteExportedFiles { get; set; }

    public BackupFileSearchModel BackupFileSearchModel { get; set; }

    public DeleteAlreadySentQueuedEmailsModel DeleteAlreadySentQueuedEmails { get; set; }

    public DeleteMinificationFilesModel DeleteMinificationFiles { get; set; }

    public bool BackupSupported { get; set; }

    #region Nested classes

    public partial record DeleteGuestsModel : BaseNopModel
    {
        [NopResourceDisplayName("Admin.System.Maintenance.DeleteGuests.StartDate")]
        [UIHint("DateNullable")]
        public DateTime? StartDate { get; set; }

        [NopResourceDisplayName("Admin.System.Maintenance.DeleteGuests.EndDate")]
        [UIHint("DateNullable")]
        public DateTime? EndDate { get; set; }

        [NopResourceDisplayName("Admin.System.Maintenance.DeleteGuests.OnlyWithoutShoppingCart")]
        public bool OnlyWithoutShoppingCart { get; set; }

        public int? NumberOfDeletedCustomers { get; set; }
    }

    public partial record DeleteAbandonedCartsModel : BaseNopModel
    {
        [NopResourceDisplayName("Admin.System.Maintenance.DeleteAbandonedCarts.OlderThan")]
        [UIHint("Date")]
        public DateTime OlderThan { get; set; }

        public int? NumberOfDeletedItems { get; set; }
    }

    public partial record DeleteExportedFilesModel : BaseNopModel
    {
        [NopResourceDisplayName("Admin.System.Maintenance.DeleteExportedFiles.StartDate")]
        [UIHint("DateNullable")]
        public DateTime? StartDate { get; set; }

        [NopResourceDisplayName("Admin.System.Maintenance.DeleteExportedFiles.EndDate")]
        [UIHint("DateNullable")]
        public DateTime? EndDate { get; set; }

        public int? NumberOfDeletedFiles { get; set; }
    }

    public partial record DeleteAlreadySentQueuedEmailsModel : BaseNopModel
    {
        [NopResourceDisplayName("Admin.System.Maintenance.DeleteAlreadySentQueuedEmails.StartDate")]
        [UIHint("DateNullable")]
        public DateTime? StartDate { get; set; }

        [NopResourceDisplayName("Admin.System.Maintenance.DeleteAlreadySentQueuedEmails.EndDate")]
        [UIHint("DateNullable")]
        public DateTime? EndDate { get; set; }

        public int? NumberOfDeletedEmails { get; set; }
    }

    public partial record DeleteMinificationFilesModel : BaseNopModel
    {
        public int? NumberOfDeletedFiles { get; set; }
    }

    #endregion
}