blob: beea8210c63df9fcf367b4d64c785978a0a77c5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System;
using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Services.Models.Post.Rating;
namespace DevHive.Services.Interfaces
{
public interface IRatingService
{
Task<Guid> RatePost(CreateRatingServiceModel createRatingServiceModel);
Task<ReadRatingServiceModel> GetRatingById(Guid ratingId);
Task<ReadRatingServiceModel> GetRatingByPostAndUser(Guid userId, Guid postId);
Task<ReadRatingServiceModel> UpdateRating(UpdateRatingServiceModel updateRatingServiceModel);
Task<bool> DeleteRating(Guid ratingId);
Task<bool> HasUserRatedThisPost(Guid userId, Guid postId);
}
}
|