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.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Services/DevHive.Services/Interfaces/IRatingService.cs b/src/Services/DevHive.Services/Interfaces/IRatingService.cs
index b9ddc2c..beea821 100644
--- a/src/Services/DevHive.Services/Interfaces/IRatingService.cs
+++ b/src/Services/DevHive.Services/Interfaces/IRatingService.cs
@@ -10,14 +10,13 @@ namespace DevHive.Services.Interfaces
Task<Guid> RatePost(CreateRatingServiceModel createRatingServiceModel);
Task<ReadRatingServiceModel> GetRatingById(Guid ratingId);
- Task<bool> HasUserRatedThisPost(Guid userId, Guid postId);
+ Task<ReadRatingServiceModel> GetRatingByPostAndUser(Guid userId, Guid postId);
+
Task<ReadRatingServiceModel> UpdateRating(UpdateRatingServiceModel updateRatingServiceModel);
Task<bool> DeleteRating(Guid ratingId);
- Task<bool> ValidateJwtForCreating(Guid userId, string rawTokenData);
-
- Task<bool> ValidateJwtForRating(Guid commentId, string rawTokenData);
+ Task<bool> HasUserRatedThisPost(Guid userId, Guid postId);
}
}