diff options
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); + } +} |
