diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-23 22:34:43 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-23 22:34:43 +0200 |
| commit | e01a81954e0fba2c4521e03a76f48a970a87994f (patch) | |
| tree | d2fdacbed68de0f4f32b1d949d75bc1de9f861d3 /src/DevHive.Services/Interfaces/IPostService.cs | |
| parent | fac1bf2d1772e60cbecc1cf0381c6063a0e97ffd (diff) | |
| download | DevHive-e01a81954e0fba2c4521e03a76f48a970a87994f.tar DevHive-e01a81954e0fba2c4521e03a76f48a970a87994f.tar.gz DevHive-e01a81954e0fba2c4521e03a76f48a970a87994f.zip | |
All Post&Comment Implemented; Initializing testing...
Diffstat (limited to 'src/DevHive.Services/Interfaces/IPostService.cs')
| -rw-r--r-- | src/DevHive.Services/Interfaces/IPostService.cs | 15 |
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); } } |
