Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Services / Interfaces / IPostService.cs
blob: 4364c67f2b4fbad6acb25d23c382fcccbf184c9a (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<Guid> CreatePost(CreatePostServiceModel postServiceModel);
		Task<Guid> 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);
	}
}