diff options
Diffstat (limited to 'src/DevHive.Data/Interfaces')
| -rw-r--r-- | src/DevHive.Data/Interfaces/Models/IProfilePicture.cs | 13 | ||||
| -rw-r--r-- | src/DevHive.Data/Interfaces/Models/IUser.cs | 2 | ||||
| -rw-r--r-- | src/DevHive.Data/Interfaces/Repositories/IUserRepository.cs | 1 |
3 files changed, 15 insertions, 1 deletions
diff --git a/src/DevHive.Data/Interfaces/Models/IProfilePicture.cs b/src/DevHive.Data/Interfaces/Models/IProfilePicture.cs new file mode 100644 index 0000000..c3fcbea --- /dev/null +++ b/src/DevHive.Data/Interfaces/Models/IProfilePicture.cs @@ -0,0 +1,13 @@ +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/DevHive.Data/Interfaces/Models/IUser.cs b/src/DevHive.Data/Interfaces/Models/IUser.cs index eb262fd..fcd741c 100644 --- a/src/DevHive.Data/Interfaces/Models/IUser.cs +++ b/src/DevHive.Data/Interfaces/Models/IUser.cs @@ -10,7 +10,7 @@ namespace DevHive.Data.Interfaces.Models string LastName { get; set; } - string ProfilePictureUrl { get; set; } + ProfilePicture ProfilePicture { get; set; } HashSet<Language> Languages { get; set; } diff --git a/src/DevHive.Data/Interfaces/Repositories/IUserRepository.cs b/src/DevHive.Data/Interfaces/Repositories/IUserRepository.cs index 4346e9c..5b6ab9e 100644 --- a/src/DevHive.Data/Interfaces/Repositories/IUserRepository.cs +++ b/src/DevHive.Data/Interfaces/Repositories/IUserRepository.cs @@ -11,6 +11,7 @@ namespace DevHive.Data.Interfaces.Repositories //Read Task<User> GetByUsernameAsync(string username); IEnumerable<User> QueryAll(); + Task<bool> UpdateProfilePicture(Guid userId, string pictureUrl); //Validations Task<bool> DoesEmailExistAsync(string email); |
