diff options
| author | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-02-26 09:25:24 +0200 |
|---|---|---|
| committer | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-02-26 09:25:24 +0200 |
| commit | 8e0038628e866ac5ce716e7971e150d2a8f23f4c (patch) | |
| tree | 4f254e27cec831100e479959e58f01ff4ac7045e /src/Services/DevHive.Services/Interfaces | |
| parent | 42f4506395d6b9e7593253856a21b2b536e18df5 (diff) | |
| download | DevHive-8e0038628e866ac5ce716e7971e150d2a8f23f4c.tar DevHive-8e0038628e866ac5ce716e7971e150d2a8f23f4c.tar.gz DevHive-8e0038628e866ac5ce716e7971e150d2a8f23f4c.zip | |
Added GetById for rating
Diffstat (limited to 'src/Services/DevHive.Services/Interfaces')
| -rw-r--r-- | src/Services/DevHive.Services/Interfaces/IRatingService.cs | 8 |
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); } } |
