blob: 6d92a5d9e055e699f716e7f0117477e6eb9133f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using System;
using System.Threading.Tasks;
using DevHive.Services.Models.Comment;
namespace DevHive.Services.Interfaces
{
public interface ICommentService
{
Task<Guid> AddComment(CreateCommentServiceModel createCommentServiceModel);
Task<ReadCommentServiceModel> GetCommentById(Guid id);
Task<Guid> UpdateComment(UpdateCommentServiceModel updateCommentServiceModel);
Task<bool> DeleteComment(Guid id);
Task<bool> ValidateJwtForCreating(Guid userId, string rawTokenData);
Task<bool> ValidateJwtForComment(Guid commentId, string rawTokenData);
}
}
|