aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Interfaces/ICommentRepository.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/DevHive.Data/Interfaces/ICommentRepository.cs')
-rw-r--r--src/Data/DevHive.Data/Interfaces/ICommentRepository.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Data/DevHive.Data/Interfaces/ICommentRepository.cs b/src/Data/DevHive.Data/Interfaces/ICommentRepository.cs
new file mode 100644
index 0000000..7b553ec
--- /dev/null
+++ b/src/Data/DevHive.Data/Interfaces/ICommentRepository.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using DevHive.Data.Models;
+
+namespace DevHive.Data.Interfaces
+{
+ public interface ICommentRepository : IRepository<Comment>
+ {
+ Task<List<Comment>> GetPostComments(Guid postId);
+
+ Task<bool> DoesCommentExist(Guid id);
+ Task<Comment> GetCommentByIssuerAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated);
+ }
+}