72 lines
2.8 KiB
C#
72 lines
2.8 KiB
C#
using Nop.Services.Plugins;
|
|
using Nop.Web.Areas.Admin.Models.Plugins;
|
|
using Nop.Web.Areas.Admin.Models.Plugins.Marketplace;
|
|
|
|
namespace Nop.Web.Areas.Admin.Factories;
|
|
|
|
/// <summary>
|
|
/// Represents the plugin model factory
|
|
/// </summary>
|
|
public partial interface IPluginModelFactory
|
|
{
|
|
/// <summary>
|
|
/// Prepare plugin search model
|
|
/// </summary>
|
|
/// <param name="searchModel">Plugin search model</param>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the plugin search model
|
|
/// </returns>
|
|
Task<PluginSearchModel> PreparePluginSearchModelAsync(PluginSearchModel searchModel);
|
|
|
|
/// <summary>
|
|
/// Prepare paged plugin list model
|
|
/// </summary>
|
|
/// <param name="searchModel">Plugin search model</param>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the plugin list model
|
|
/// </returns>
|
|
Task<PluginListModel> PreparePluginListModelAsync(PluginSearchModel searchModel);
|
|
|
|
/// <summary>
|
|
/// Prepare plugin model
|
|
/// </summary>
|
|
/// <param name="model">Plugin model</param>
|
|
/// <param name="pluginDescriptor">Plugin descriptor</param>
|
|
/// <param name="excludeProperties">Whether to exclude populating of some properties of model</param>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the plugin model
|
|
/// </returns>
|
|
Task<PluginModel> PreparePluginModelAsync(PluginModel model, PluginDescriptor pluginDescriptor, bool excludeProperties = false);
|
|
|
|
/// <summary>
|
|
/// Prepare search model of plugins of the official feed
|
|
/// </summary>
|
|
/// <param name="searchModel">Search model of plugins of the official feed</param>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the search model of plugins of the official feed
|
|
/// </returns>
|
|
Task<OfficialFeedPluginSearchModel> PrepareOfficialFeedPluginSearchModelAsync(OfficialFeedPluginSearchModel searchModel);
|
|
|
|
/// <summary>
|
|
/// Prepare paged list model of plugins of the official feed
|
|
/// </summary>
|
|
/// <param name="searchModel">Search model of plugins of the official feed</param>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the list model of plugins of the official feed
|
|
/// </returns>
|
|
Task<OfficialFeedPluginListModel> PrepareOfficialFeedPluginListModelAsync(OfficialFeedPluginSearchModel searchModel);
|
|
|
|
/// <summary>
|
|
/// Prepare plugin models for admin navigation
|
|
/// </summary>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the list of models
|
|
/// </returns>
|
|
Task<IList<AdminNavigationPluginModel>> PrepareAdminNavigationPluginModelsAsync();
|
|
} |