aboutsummaryrefslogtreecommitdiff
path: root/src/Services/DevHive.Services/Interfaces/IRatingService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Services/DevHive.Services/Interfaces/IRatingService.cs')
-rw-r--r--src/Services/DevHive.Services/Interfaces/IRatingService.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Services/DevHive.Services/Interfaces/IRatingService.cs b/src/Services/DevHive.Services/Interfaces/IRatingService.cs
index 5dea04f..a554ce3 100644
--- a/src/Services/DevHive.Services/Interfaces/IRatingService.cs
+++ b/src/Services/DevHive.Services/Interfaces/IRatingService.cs
@@ -7,8 +7,12 @@ namespace DevHive.Services.Interfaces
{
public interface IRatingService
{
- Task<Guid> RatePost(CreateRatingServiceModel ratePostServiceModel);
+ Task<Guid> RatePost(CreateRatingServiceModel createRatingServiceModel);
- bool HasUserRatedThisPost(User user, Post post);
+ 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);
}
}