using Nop.Core.Domain.Customers; using Nop.Core.Domain.Forums; using Nop.Web.Models.PrivateMessages; namespace Nop.Web.Factories; /// /// Represents the interface of the private message model factory /// public partial interface IPrivateMessagesModelFactory { /// /// Prepare the private message index model /// /// Number of items page; pass null to disable paging /// Tab name /// /// A task that represents the asynchronous operation /// The task result contains the private message index model /// Task PreparePrivateMessageIndexModelAsync(int? page, string tab); /// /// Prepare the inbox model /// /// Number of items page /// Tab name /// /// A task that represents the asynchronous operation /// The task result contains the private message list model /// Task PrepareInboxModelAsync(int page, string tab); /// /// Prepare the sent model /// /// Number of items page /// Tab name /// /// A task that represents the asynchronous operation /// The task result contains the private message list model /// Task PrepareSentModelAsync(int page, string tab); /// /// Prepare the send private message model /// /// Customer, recipient of the message /// Private message, pass if reply to a previous message is need /// /// A task that represents the asynchronous operation /// The task result contains the send private message model /// Task PrepareSendPrivateMessageModelAsync(Customer customerTo, PrivateMessage replyToPM); /// /// Prepare the private message model /// /// Private message /// /// A task that represents the asynchronous operation /// The task result contains the private message model /// Task PreparePrivateMessageModelAsync(PrivateMessage pm); }