diff options
Diffstat (limited to 'src/DevHive.Data/Interfaces')
| -rw-r--r-- | src/DevHive.Data/Interfaces/Models/IPost.cs | 2 | ||||
| -rw-r--r-- | src/DevHive.Data/Interfaces/Models/IRating.cs | 8 | ||||
| -rw-r--r-- | src/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/src/DevHive.Data/Interfaces/Models/IPost.cs b/src/DevHive.Data/Interfaces/Models/IPost.cs index 65c0fb4..5031a05 100644 --- a/src/DevHive.Data/Interfaces/Models/IPost.cs +++ b/src/DevHive.Data/Interfaces/Models/IPost.cs @@ -14,7 +14,7 @@ namespace DevHive.Data.Interfaces.Models List<Comment> Comments { get; set; } - Rating Rating { get; set; } + // Rating Rating { get; set; } List<string> FileUrls { get; set; } } diff --git a/src/DevHive.Data/Interfaces/Models/IRating.cs b/src/DevHive.Data/Interfaces/Models/IRating.cs index 4604a75..d1b968f 100644 --- a/src/DevHive.Data/Interfaces/Models/IRating.cs +++ b/src/DevHive.Data/Interfaces/Models/IRating.cs @@ -1,14 +1,14 @@ -using DevHive.Data.Interfaces.Models; +using System.Collections.Generic; using DevHive.Data.Models; namespace DevHive.Data.Interfaces.Models { public interface IRating : IModel { - Post Post { get; set; } + // Post Post { get; set; } - int Likes { get; set; } + int Rate { get; set; } - int Dislikes { get; set; } + // HashSet<User> UsersThatRated { get; set; } } } diff --git a/src/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs b/src/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs index de4e3f2..7b99e0e 100644 --- a/src/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs +++ b/src/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs @@ -8,8 +8,6 @@ namespace DevHive.Data.Interfaces.Repositories public interface IRatingRepository : IRepository<Rating> { Task<Rating> GetByPostId(Guid postId); - Task<Tuple<int, int>> GetRating(Guid postId); - - Task<bool> HasUserRatedThisPost(Guid userId, Guid postId); + Task<int> GetRating(Guid postId); } } |
