aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Interfaces/IRatingRepository.cs
blob: 4840c59c9b0a16bc3445939b22a5f674e855bed3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DevHive.Data.Models;
namespace DevHive.Data.Interfaces
{
	public interface IRatingRepository : IRepository<Rating>
	{
		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);
	}
}