aboutsummaryrefslogtreecommitdiff
path: root/src/Services/DevHive.Services/Interfaces/ICommentService.cs
blob: e7409a801811e76191af851079858813efea754b (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 createPostServiceModel);

		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);
	}
}