Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Services / Interfaces / IPostService.cs
diff options
context:
space:
mode:
Commitff91162eb83dcf19402240ae8fa06f70cbf2b9e0 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-01-30 11:31:21 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-01-30 11:31:21 +0200
Files2948559f7326c8221f799d4aaf794c5e00c06bd9 /src/DevHive.Services/Interfaces/IPostService.cs
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar.gz
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.zip
Parentdde27f48caf455f9b342d68b0a4a5c95f302b9f7 (diff)
Separated comment models, controler and service from post's
1 files changed, 2 insertions, 8 deletions
-rw-r--r--src/DevHive.Services/Interfaces/IPostService.cs10
diff --git a/src/DevHive.Services/Interfaces/IPostService.cs b/src/DevHive.Services/Interfaces/IPostService.cs
index 71b558c..d35acfd 100644
--- a/src/DevHive.Services/Interfaces/IPostService.cs
+++ b/src/DevHive.Services/Interfaces/IPostService.cs
@@ -1,26 +1,20 @@
using System;
using System.Threading.Tasks;
-using DevHive.Services.Models.Post.Comment;
-using DevHive.Services.Models.Post.Post;
+using DevHive.Services.Models.Post;
namespace DevHive.Services.Interfaces
{
- public interface IPostService
+ public interface IPostService
{
Task<Guid> CreatePost(CreatePostServiceModel createPostServiceModel);
- Task<Guid> AddComment(CreateCommentServiceModel createPostServiceModel);
Task<ReadPostServiceModel> GetPostById(Guid id);
- Task<ReadCommentServiceModel> GetCommentById(Guid id);
Task<Guid> UpdatePost(UpdatePostServiceModel updatePostServiceModel);
- Task<Guid> UpdateComment(UpdateCommentServiceModel updateCommentServiceModel);
Task<bool> DeletePost(Guid id);
- Task<bool> DeleteComment(Guid id);
Task<bool> ValidateJwtForCreating(Guid userId, string rawTokenData);
Task<bool> ValidateJwtForPost(Guid postId, string rawTokenData);
- Task<bool> ValidateJwtForComment(Guid commentId, string rawTokenData);
}
}