aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/DevHive.Data/Interfaces')
-rw-r--r--src/Data/DevHive.Data/Interfaces/IRatingRepository.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Data/DevHive.Data/Interfaces/IRatingRepository.cs b/src/Data/DevHive.Data/Interfaces/IRatingRepository.cs
index b5aff88..db37d00 100644
--- a/src/Data/DevHive.Data/Interfaces/IRatingRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/IRatingRepository.cs
@@ -1,4 +1,5 @@
using System;
+using System.Collections.Generic;
using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
@@ -7,7 +8,10 @@ namespace DevHive.Data.Interfaces
{
public interface IRatingRepository : IRepository<Rating>
{
- Task<Rating> GetRatingByPostId(Guid postId);
+ Task<List<Rating>> GetRatingsByPostId(Guid postId);
Task<bool> UserRatedPost(Guid userId, Guid postId);
+ Task<Rating> GetRatingByUserAndPostId(Guid userId, Guid postId);
+
+ Task<bool> DoesRatingExist(Guid id);
}
}