aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Interfaces/IPostService.cs
blob: dd886b453c3a929d17f723d9da44d9d99929f702 (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);
	}
}