blob: a554ce3db780912af19f16105e8fe95ca0aba40c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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> GetUserRateFromPost(Guid userId, Guid postId);
Task<bool> HasUserRatedThisPost(Guid userId, Guid postId);
Task<ReadRatingServiceModel> RemoveUserRateFromPost(Guid userId, Guid postId);
}
}
|