aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Services/Interfaces')
-rw-r--r--src/DevHive.Services/Interfaces/IPostService.cs15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/DevHive.Services/Interfaces/IPostService.cs b/src/DevHive.Services/Interfaces/IPostService.cs
index 4364c67..37c3354 100644
--- a/src/DevHive.Services/Interfaces/IPostService.cs
+++ b/src/DevHive.Services/Interfaces/IPostService.cs
@@ -7,18 +7,19 @@ namespace DevHive.Services.Interfaces
{
public interface IPostService
{
- Task<Guid> CreatePost(CreatePostServiceModel postServiceModel);
- Task<Guid> AddComment(CreateCommentServiceModel commentServiceModel);
+ Task<Guid> CreatePost(CreatePostServiceModel createPostServiceModel);
+ Task<Guid> AddComment(CreateCommentServiceModel createPostServiceModel);
- Task<CommentServiceModel> GetCommentById(Guid id);
- Task<PostServiceModel> GetPostById(Guid id);
+ Task<ReadPostServiceModel> GetPostById(Guid id);
+ Task<ReadCommentServiceModel> GetCommentById(Guid id);
- Task<bool> UpdateComment(UpdateCommentServiceModel commentServiceModel);
- Task<bool> UpdatePost(UpdatePostServiceModel postServiceModel);
+ Task<Guid> UpdatePost(UpdatePostServiceModel updatePostServiceModel);
+ Task<Guid> UpdateComment(UpdateCommentServiceModel updateCommentServiceModel);
- Task<bool> DeleteComment(Guid id);
Task<bool> DeletePost(Guid id);
+ Task<bool> DeleteComment(Guid id);
+ Task<bool> ValidateJwtForPost(Guid postId, string rawTokenData);
Task<bool> ValidateJwtForComment(Guid commentId, string rawTokenData);
}
}