aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/DevHive.Data/Interfaces')
-rw-r--r--src/Data/DevHive.Data/Interfaces/ICommentRepository.cs (renamed from src/Data/DevHive.Data/Interfaces/Repositories/ICommentRepository.cs)2
-rw-r--r--src/Data/DevHive.Data/Interfaces/IFeedRepository.cs (renamed from src/Data/DevHive.Data/Interfaces/Repositories/IFeedRepository.cs)2
-rw-r--r--src/Data/DevHive.Data/Interfaces/ILanguageRepository.cs (renamed from src/Data/DevHive.Data/Interfaces/Repositories/ILanguageRepository.cs)2
-rw-r--r--src/Data/DevHive.Data/Interfaces/IPostRepository.cs (renamed from src/Data/DevHive.Data/Interfaces/Repositories/IPostRepository.cs)2
-rw-r--r--src/Data/DevHive.Data/Interfaces/IRatingRepository.cs (renamed from src/Data/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs)2
-rw-r--r--src/Data/DevHive.Data/Interfaces/IRepository.cs (renamed from src/Data/DevHive.Data/Interfaces/Repositories/IRepository.cs)0
-rw-r--r--src/Data/DevHive.Data/Interfaces/IRoleRepository.cs (renamed from src/Data/DevHive.Data/Interfaces/Repositories/IRoleRepository.cs)2
-rw-r--r--src/Data/DevHive.Data/Interfaces/ITechnologyRepository.cs (renamed from src/Data/DevHive.Data/Interfaces/Repositories/ITechnologyRepository.cs)2
-rw-r--r--src/Data/DevHive.Data/Interfaces/IUserRepository.cs (renamed from src/Data/DevHive.Data/Interfaces/Repositories/IUserRepository.cs)2
-rw-r--r--src/Data/DevHive.Data/Interfaces/Models/IComment.cs16
-rw-r--r--src/Data/DevHive.Data/Interfaces/Models/ILanguage.cs11
-rw-r--r--src/Data/DevHive.Data/Interfaces/Models/IModel.cs9
-rw-r--r--src/Data/DevHive.Data/Interfaces/Models/IPost.cs22
-rw-r--r--src/Data/DevHive.Data/Interfaces/Models/IProfilePicture.cs13
-rw-r--r--src/Data/DevHive.Data/Interfaces/Models/IRating.cs14
-rw-r--r--src/Data/DevHive.Data/Interfaces/Models/IRole.cs10
-rw-r--r--src/Data/DevHive.Data/Interfaces/Models/ITechnology.cs11
-rw-r--r--src/Data/DevHive.Data/Interfaces/Models/IUser.cs21
18 files changed, 8 insertions, 135 deletions
diff --git a/src/Data/DevHive.Data/Interfaces/Repositories/ICommentRepository.cs b/src/Data/DevHive.Data/Interfaces/ICommentRepository.cs
index 267f251..f85849f 100644
--- a/src/Data/DevHive.Data/Interfaces/Repositories/ICommentRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/ICommentRepository.cs
@@ -4,7 +4,7 @@ using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
-namespace DevHive.Data.Interfaces.Repositories
+namespace DevHive.Data.Interfaces
{
public interface ICommentRepository : IRepository<Comment>
{
diff --git a/src/Data/DevHive.Data/Interfaces/Repositories/IFeedRepository.cs b/src/Data/DevHive.Data/Interfaces/IFeedRepository.cs
index 7262510..bda51fa 100644
--- a/src/Data/DevHive.Data/Interfaces/Repositories/IFeedRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/IFeedRepository.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
using DevHive.Data.Models;
-namespace DevHive.Data.Interfaces.Repositories
+namespace DevHive.Data.Interfaces
{
public interface IFeedRepository
{
diff --git a/src/Data/DevHive.Data/Interfaces/Repositories/ILanguageRepository.cs b/src/Data/DevHive.Data/Interfaces/ILanguageRepository.cs
index db2949a..4771f91 100644
--- a/src/Data/DevHive.Data/Interfaces/Repositories/ILanguageRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/ILanguageRepository.cs
@@ -4,7 +4,7 @@ using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
-namespace DevHive.Data.Interfaces.Repositories
+namespace DevHive.Data.Interfaces
{
public interface ILanguageRepository : IRepository<Language>
{
diff --git a/src/Data/DevHive.Data/Interfaces/Repositories/IPostRepository.cs b/src/Data/DevHive.Data/Interfaces/IPostRepository.cs
index 9f7cf85..c24d596 100644
--- a/src/Data/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/IPostRepository.cs
@@ -4,7 +4,7 @@ using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
-namespace DevHive.Data.Interfaces.Repositories
+namespace DevHive.Data.Interfaces
{
public interface IPostRepository : IRepository<Post>
{
diff --git a/src/Data/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs b/src/Data/DevHive.Data/Interfaces/IRatingRepository.cs
index f77f301..b5aff88 100644
--- a/src/Data/DevHive.Data/Interfaces/Repositories/IRatingRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/IRatingRepository.cs
@@ -3,7 +3,7 @@ using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
-namespace DevHive.Data.Interfaces.Repositories
+namespace DevHive.Data.Interfaces
{
public interface IRatingRepository : IRepository<Rating>
{
diff --git a/src/Data/DevHive.Data/Interfaces/Repositories/IRepository.cs b/src/Data/DevHive.Data/Interfaces/IRepository.cs
index 0d11cd3..0d11cd3 100644
--- a/src/Data/DevHive.Data/Interfaces/Repositories/IRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/IRepository.cs
diff --git a/src/Data/DevHive.Data/Interfaces/Repositories/IRoleRepository.cs b/src/Data/DevHive.Data/Interfaces/IRoleRepository.cs
index e834369..a1080bb 100644
--- a/src/Data/DevHive.Data/Interfaces/Repositories/IRoleRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/IRoleRepository.cs
@@ -3,7 +3,7 @@ using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
-namespace DevHive.Data.Interfaces.Repositories
+namespace DevHive.Data.Interfaces
{
public interface IRoleRepository : IRepository<Role>
{
diff --git a/src/Data/DevHive.Data/Interfaces/Repositories/ITechnologyRepository.cs b/src/Data/DevHive.Data/Interfaces/ITechnologyRepository.cs
index 9126bfc..3e55b2d 100644
--- a/src/Data/DevHive.Data/Interfaces/Repositories/ITechnologyRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/ITechnologyRepository.cs
@@ -4,7 +4,7 @@ using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
-namespace DevHive.Data.Interfaces.Repositories
+namespace DevHive.Data.Interfaces
{
public interface ITechnologyRepository : IRepository<Technology>
{
diff --git a/src/Data/DevHive.Data/Interfaces/Repositories/IUserRepository.cs b/src/Data/DevHive.Data/Interfaces/IUserRepository.cs
index 5ebe3d3..917809d 100644
--- a/src/Data/DevHive.Data/Interfaces/Repositories/IUserRepository.cs
+++ b/src/Data/DevHive.Data/Interfaces/IUserRepository.cs
@@ -4,7 +4,7 @@ using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
-namespace DevHive.Data.Interfaces.Repositories
+namespace DevHive.Data.Interfaces
{
public interface IUserRepository : IRepository<User>
{
diff --git a/src/Data/DevHive.Data/Interfaces/Models/IComment.cs b/src/Data/DevHive.Data/Interfaces/Models/IComment.cs
deleted file mode 100644
index 97c1578..0000000
--- a/src/Data/DevHive.Data/Interfaces/Models/IComment.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using DevHive.Data.Models;
-
-namespace DevHive.Data.Interfaces.Models
-{
- public interface IComment : IModel
- {
- Post Post { get; set; }
-
- User Creator { get; set; }
-
- string Message { get; set; }
-
- DateTime TimeCreated { get; set; }
- }
-}
diff --git a/src/Data/DevHive.Data/Interfaces/Models/ILanguage.cs b/src/Data/DevHive.Data/Interfaces/Models/ILanguage.cs
deleted file mode 100644
index 9eed09d..0000000
--- a/src/Data/DevHive.Data/Interfaces/Models/ILanguage.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System.Collections.Generic;
-using DevHive.Data.Models;
-
-namespace DevHive.Data.Interfaces.Models
-{
- public interface ILanguage : IModel
- {
- string Name { get; set; }
- HashSet<User> Users { get; set; }
- }
-}
diff --git a/src/Data/DevHive.Data/Interfaces/Models/IModel.cs b/src/Data/DevHive.Data/Interfaces/Models/IModel.cs
deleted file mode 100644
index f903af3..0000000
--- a/src/Data/DevHive.Data/Interfaces/Models/IModel.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using System;
-
-namespace DevHive.Data.Interfaces.Models
-{
- public interface IModel
- {
- Guid Id { get; set; }
- }
-}
diff --git a/src/Data/DevHive.Data/Interfaces/Models/IPost.cs b/src/Data/DevHive.Data/Interfaces/Models/IPost.cs
deleted file mode 100644
index 712d955..0000000
--- a/src/Data/DevHive.Data/Interfaces/Models/IPost.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using System.Collections.Generic;
-using DevHive.Data.Models;
-using DevHive.Data.RelationModels;
-
-namespace DevHive.Data.Interfaces.Models
-{
- public interface IPost : IModel
- {
- User Creator { get; set; }
-
- string Message { get; set; }
-
- DateTime TimeCreated { get; set; }
-
- List<Comment> Comments { get; set; }
-
- // Rating Rating { get; set; }
-
- List<PostAttachments> Attachments { get; set; }
- }
-}
diff --git a/src/Data/DevHive.Data/Interfaces/Models/IProfilePicture.cs b/src/Data/DevHive.Data/Interfaces/Models/IProfilePicture.cs
deleted file mode 100644
index c3fcbea..0000000
--- a/src/Data/DevHive.Data/Interfaces/Models/IProfilePicture.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-using DevHive.Data.Models;
-
-namespace DevHive.Data.Interfaces.Models
-{
- public interface IProfilePicture : IModel
- {
- Guid UserId { get; set; }
- User User { get; set; }
-
- string PictureURL { get; set; }
- }
-}
diff --git a/src/Data/DevHive.Data/Interfaces/Models/IRating.cs b/src/Data/DevHive.Data/Interfaces/Models/IRating.cs
deleted file mode 100644
index d1b968f..0000000
--- a/src/Data/DevHive.Data/Interfaces/Models/IRating.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System.Collections.Generic;
-using DevHive.Data.Models;
-
-namespace DevHive.Data.Interfaces.Models
-{
- public interface IRating : IModel
- {
- // Post Post { get; set; }
-
- int Rate { get; set; }
-
- // HashSet<User> UsersThatRated { get; set; }
- }
-}
diff --git a/src/Data/DevHive.Data/Interfaces/Models/IRole.cs b/src/Data/DevHive.Data/Interfaces/Models/IRole.cs
deleted file mode 100644
index c8b7068..0000000
--- a/src/Data/DevHive.Data/Interfaces/Models/IRole.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Collections.Generic;
-using DevHive.Data.Models;
-
-namespace DevHive.Data.Interfaces.Models
-{
- public interface IRole
- {
- HashSet<User> Users { get; set; }
- }
-}
diff --git a/src/Data/DevHive.Data/Interfaces/Models/ITechnology.cs b/src/Data/DevHive.Data/Interfaces/Models/ITechnology.cs
deleted file mode 100644
index 153f75f..0000000
--- a/src/Data/DevHive.Data/Interfaces/Models/ITechnology.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System.Collections.Generic;
-using DevHive.Data.Models;
-
-namespace DevHive.Data.Interfaces.Models
-{
- public interface ITechnology : IModel
- {
- string Name { get; set; }
- HashSet<User> Users { get; set; }
- }
-}
diff --git a/src/Data/DevHive.Data/Interfaces/Models/IUser.cs b/src/Data/DevHive.Data/Interfaces/Models/IUser.cs
deleted file mode 100644
index fcd741c..0000000
--- a/src/Data/DevHive.Data/Interfaces/Models/IUser.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System.Collections.Generic;
-using DevHive.Data.Models;
-using DevHive.Data.RelationModels;
-
-namespace DevHive.Data.Interfaces.Models
-{
- public interface IUser : IModel
- {
- string FirstName { get; set; }
-
- string LastName { get; set; }
-
- ProfilePicture ProfilePicture { get; set; }
-
- HashSet<Language> Languages { get; set; }
-
- HashSet<Technology> Technologies { get; set; }
-
- HashSet<Role> Roles { get; set; }
- }
-}