Try your search with a different keyword or use * as a wildcard.
using Nop.Core;
using Nop.Core.Domain.Catalog;
namespace Nop.Services.Catalog;
///
/// Product review service
///
public partial interface IProductReviewService
{
///
/// Validate product review availability
///
/// Product to validate review availability
///
/// A task that represents the asynchronous operation
/// The task result contains the validation error list if found
///
Task> ValidateProductReviewAvailabilityAsync(Product product);
///
/// Gets all product reviews
///
/// Customer identifier (who wrote a review); 0 to load all records
/// A value indicating whether to content is approved; null to load all records
/// Item creation from; null to load all records
/// Item creation to; null to load all records
/// Search title or review text; null to load all records
/// The store identifier; pass 0 to load all records
/// The product identifier; pass 0 to load all records
/// The vendor identifier (limit to products of this vendor); pass 0 to load all records
/// A value indicating whether to show hidden records
/// Page index
/// Page size
///
/// A task that represents the asynchronous operation
/// The task result contains the reviews
///
Task> GetAllProductReviewsAsync(int customerId = 0, bool? approved = null,
DateTime? fromUtc = null, DateTime? toUtc = null,
string message = null, int storeId = 0, int productId = 0, int vendorId = 0, bool showHidden = false,
int pageIndex = 0, int pageSize = int.MaxValue);
///
/// Gets product review
///
/// Product review identifier
///
/// A task that represents the asynchronous operation
/// The task result contains the product review
///
Task GetProductReviewByIdAsync(int productReviewId);
///
/// Get product reviews by identifiers
///
/// Product review identifiers
///
/// A task that represents the asynchronous operation
/// The task result contains the product reviews
///
Task> GetProductReviewsByIdsAsync(int[] productReviewIds);
///
/// Inserts a product review
///
/// Product review
/// Review type mappings
/// A task that represents the asynchronous operation
Task InsertProductReviewAsync(ProductReview productReview, IList productReviewReviewTypeMappings = null);
///
/// Deletes a product review
///
/// Product review
/// A task that represents the asynchronous operation
Task DeleteProductReviewAsync(ProductReview productReview);
///
/// Deletes product reviews
///
/// Product reviews
/// A task that represents the asynchronous operation
Task DeleteProductReviewsAsync(IList productReviews);
///
/// Sets or create a product review helpfulness record
///
/// Product reviews
/// Value indicating whether a review a helpful
/// A task that represents the asynchronous operation
Task SetProductReviewHelpfulnessAsync(ProductReview productReview, bool helpfulness);
///
/// Updates a totals helpfulness count for product review
///
/// Product review
///
/// A task that represents the asynchronous operation
/// The task result contains the result
///
Task UpdateProductReviewHelpfulnessTotalsAsync(ProductReview productReview);
///
/// Updates a product review
///
/// Product review
/// A task that represents the asynchronous operation
Task UpdateProductReviewAsync(ProductReview productReview);
///
/// Check possibility added review for current customer
///
/// Current product
/// The store identifier; pass 0 to load all records
///
/// A task that represents the asynchronous operation
/// The task result contains the
///
Task CanAddReviewAsync(int productId, int storeId = 0);
///
/// Update product review totals
///
/// Product
/// A task that represents the asynchronous operation
Task UpdateProductReviewTotalsAsync(Product product);
}