using Nop.Core.Domain.Polls; using Nop.Web.Models.Polls; namespace Nop.Web.Factories; /// /// Represents the interface of the poll model factory /// public partial interface IPollModelFactory { /// /// Prepare the poll model /// /// Poll /// Whether to load a value indicating that customer already voted for this poll /// /// A task that represents the asynchronous operation /// The task result contains the poll model /// Task PreparePollModelAsync(Poll poll, bool setAlreadyVotedProperty); /// /// Get the poll model by poll system keyword /// /// Poll system keyword /// /// A task that represents the asynchronous operation /// The task result contains the poll model /// Task PreparePollModelBySystemNameAsync(string systemKeyword); /// /// Prepare the home page poll models /// /// /// A task that represents the asynchronous operation /// The task result contains the list of the poll model /// Task> PrepareHomepagePollModelsAsync(); }