using Oqtane.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Oqtane.Services
{
///
/// Service to retrieve and store modules ()
///
public interface IModuleService
{
///
/// Returns a list of modules for the given site
///
///
///
Task> GetModulesAsync(int siteId);
///
/// Returns a specific module
///
///
///
Task GetModuleAsync(int moduleId);
///
/// Adds a new module
///
///
///
Task AddModuleAsync(Module module);
///
/// Updates an existing module
///
///
///
Task UpdateModuleAsync(Module module);
///
/// Deletes a module
///
///
///
Task DeleteModuleAsync(int moduleId);
///
/// Imports a module
///
///
/// module in JSON format
///
Task ImportModuleAsync(int moduleId, int pageId, string content);
///
/// Exports a given module
///
///
/// module in JSON
Task ExportModuleAsync(int moduleId, int pageId);
}
}