aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Interfaces/ICommentService.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-01-30 11:31:21 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-01-30 11:31:21 +0200
commitff91162eb83dcf19402240ae8fa06f70cbf2b9e0 (patch)
tree2948559f7326c8221f799d4aaf794c5e00c06bd9 /src/DevHive.Services/Interfaces/ICommentService.cs
parentdde27f48caf455f9b342d68b0a4a5c95f302b9f7 (diff)
downloadDevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar.gz
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.zip
Separated comment models, controler and service from post's
Diffstat (limited to 'src/DevHive.Services/Interfaces/ICommentService.cs')
-rw-r--r--src/DevHive.Services/Interfaces/ICommentService.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/DevHive.Services/Interfaces/ICommentService.cs b/src/DevHive.Services/Interfaces/ICommentService.cs
new file mode 100644
index 0000000..e7409a8
--- /dev/null
+++ b/src/DevHive.Services/Interfaces/ICommentService.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Threading.Tasks;
+using DevHive.Services.Models.Comment;
+
+namespace DevHive.Services.Interfaces
+{
+ public interface ICommentService
+ {
+ Task<Guid> AddComment(CreateCommentServiceModel createPostServiceModel);
+
+ Task<ReadCommentServiceModel> GetCommentById(Guid id);
+
+ Task<Guid> UpdateComment(UpdateCommentServiceModel updateCommentServiceModel);
+
+ Task<bool> DeleteComment(Guid id);
+
+ Task<bool> ValidateJwtForCreating(Guid userId, string rawTokenData);
+ Task<bool> ValidateJwtForComment(Guid commentId, string rawTokenData);
+ }
+}