aboutsummaryrefslogtreecommitdiff
path: root/src/Services/DevHive.Services/Interfaces
diff options
context:
space:
mode:
authorDanail Dimitrov <danaildimitrov321@gmail.com>2021-02-27 21:53:14 +0200
committerDanail Dimitrov <danaildimitrov321@gmail.com>2021-02-27 21:53:14 +0200
commit6089bc2e3b14155c334c9fed057383b9ca6e4df6 (patch)
treee219e1d4fa870a81a88f1ee8c63902f0f45133f2 /src/Services/DevHive.Services/Interfaces
parent379eda6a42fdba0a6ed7e7ae53e0fbf2acd774b6 (diff)
downloadDevHive-6089bc2e3b14155c334c9fed057383b9ca6e4df6.tar
DevHive-6089bc2e3b14155c334c9fed057383b9ca6e4df6.tar.gz
DevHive-6089bc2e3b14155c334c9fed057383b9ca6e4df6.zip
Adding user validation for rating layer
Diffstat (limited to 'src/Services/DevHive.Services/Interfaces')
-rw-r--r--src/Services/DevHive.Services/Interfaces/IRatingService.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Services/DevHive.Services/Interfaces/IRatingService.cs b/src/Services/DevHive.Services/Interfaces/IRatingService.cs
index 601b07e..b9ddc2c 100644
--- a/src/Services/DevHive.Services/Interfaces/IRatingService.cs
+++ b/src/Services/DevHive.Services/Interfaces/IRatingService.cs
@@ -15,5 +15,9 @@ namespace DevHive.Services.Interfaces
Task<ReadRatingServiceModel> UpdateRating(UpdateRatingServiceModel updateRatingServiceModel);
Task<bool> DeleteRating(Guid ratingId);
+
+ Task<bool> ValidateJwtForCreating(Guid userId, string rawTokenData);
+
+ Task<bool> ValidateJwtForRating(Guid commentId, string rawTokenData);
}
}