diff options
Diffstat (limited to 'src/DevHive.Data/Interfaces/Repositories')
| -rw-r--r-- | src/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs b/src/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs new file mode 100644 index 0000000..de4e3f2 --- /dev/null +++ b/src/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs @@ -0,0 +1,15 @@ +using System; +using System.Threading.Tasks; +using DevHive.Data.Models; +using DevHive.Data.Repositories.Interfaces; + +namespace DevHive.Data.Interfaces.Repositories +{ + public interface IRatingRepository : IRepository<Rating> + { + Task<Rating> GetByPostId(Guid postId); + Task<Tuple<int, int>> GetRating(Guid postId); + + Task<bool> HasUserRatedThisPost(Guid userId, Guid postId); + } +} |
