blob: 917809da62fc16bb8cb78f3bac64d057271bf77b (
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.Collections.Generic;
using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
namespace DevHive.Data.Interfaces
{
public interface IUserRepository : IRepository<User>
{
//Read
Task<User> GetByUsernameAsync(string username);
Task<bool> UpdateProfilePicture(Guid userId, string pictureUrl);
//Validations
Task<bool> ValidateFriendsCollectionAsync(List<string> usernames);
Task<bool> DoesEmailExistAsync(string email);
Task<bool> DoesUserExistAsync(Guid id);
Task<bool> DoesUsernameExistAsync(string username);
bool DoesUserHaveThisUsername(Guid id, string username);
}
}
|