blob: b0673acc4049c740aba94187ac15eaa90be65cf7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);
}
}
|