aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Interfaces/IPostService.cs
blob: 9cb21edb93395200c9af3e82b6cd55184b6c0c48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Threading.Tasks;
using DevHive.Services.Models.Post.Comment;
using DevHive.Services.Models.Post.Post;

namespace DevHive.Services.Interfaces
{
	public interface IPostService
	{
		Task<bool> CreatePost(CreatePostServiceModel postServiceModel);
		Task<bool> AddComment(CreateCommentServiceModel commentServiceModel);

		Task<CommentServiceModel> GetCommentById(Guid id);
		Task<PostServiceModel> GetPostById(Guid id);

		Task<bool> UpdateComment(UpdateCommentServiceModel commentServiceModel);
		Task<bool> UpdatePost(UpdatePostServiceModel postServiceModel);
		
		Task<bool> DeleteComment(Guid id);
		Task<bool> DeletePost(Guid id);
		
		Task<bool> ValidateJwtForComment(Guid commentId, string rawTokenData);
	}
}