blob: 5ebe3d34f47bd4d9a50fc078713a61f0ec5c8614 (
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.Repositories
{
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);
}
}
|