using System; using Orchard.Comments.Models; using Orchard.ContentManagement; namespace Orchard.Comments.Services { public interface ICommentService : IDependency { IContentQuery GetComments(); IContentQuery GetComments(CommentStatus status); IContentQuery GetCommentsForCommentedContent(int id); IContentQuery GetCommentsForCommentedContent(int id, CommentStatus status); CommentPart GetComment(int id); ContentItemMetadata GetDisplayForCommentedContent(int id); ContentItem GetCommentedContent(int id); void ApproveComment(int commentId); void UnapproveComment(int commentId); void DeleteComment(int commentId); bool CommentsDisabledForCommentedContent(int id); void DisableCommentsForCommentedContent(int id); void EnableCommentsForCommentedContent(int id); bool DecryptNonce(string nonce, out int id); string CreateNonce(CommentPart comment, TimeSpan delay); } }