diff options
| author | transtrike <transtrike@gmail.com> | 2021-03-25 12:22:54 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-03-25 12:22:54 +0200 |
| commit | d53caaea6094136bac3d01ce9dd2782bb1819fe2 (patch) | |
| tree | 0c15e12d9a694600a51070295b0358cee1463545 /src/Services/DevHive.Services/Interfaces/IProfilePictureService.cs | |
| parent | 9b04b4f2b031a3c631dba65908f277996015ae05 (diff) | |
| download | DevHive-d53caaea6094136bac3d01ce9dd2782bb1819fe2.tar DevHive-d53caaea6094136bac3d01ce9dd2782bb1819fe2.tar.gz DevHive-d53caaea6094136bac3d01ce9dd2782bb1819fe2.zip | |
Profile Picture implemented; Tests and Front end work await
Diffstat (limited to 'src/Services/DevHive.Services/Interfaces/IProfilePictureService.cs')
| -rw-r--r-- | src/Services/DevHive.Services/Interfaces/IProfilePictureService.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Services/DevHive.Services/Interfaces/IProfilePictureService.cs b/src/Services/DevHive.Services/Interfaces/IProfilePictureService.cs new file mode 100644 index 0000000..b0673ac --- /dev/null +++ b/src/Services/DevHive.Services/Interfaces/IProfilePictureService.cs @@ -0,0 +1,22 @@ +using System; +using System.Threading.Tasks; +using DevHive.Services.Models.ProfilePicture; + +namespace DevHive.Services.Interfaces +{ + public interface IProfilePictureService + { + Task<string> InsertProfilePicture(ProfilePictureServiceModel profilePictureServiceModel); + + Task<string> GetProfilePictureById(Guid id); + + /// <summary> + /// Uploads the given picture and assigns it's link to the user in the database + /// </summary> + /// <param name="profilePictureServiceModel">Contains User's Guid and the new picture to be updated</param> + /// <returns>The new picture's URL</returns> + Task<string> UpdateProfilePicture(ProfilePictureServiceModel profilePictureServiceModel); + + Task<bool> DeleteProfilePicture(Guid id); + } +} |
