blob: 4346e9ca7da9ce3f57d88c245b0b14e2467e099c (
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);
IEnumerable<User> QueryAll();
//Validations
Task<bool> DoesEmailExistAsync(string email);
Task<bool> DoesUserExistAsync(Guid id);
Task<bool> DoesUserHaveThisFriendAsync(Guid userId, Guid friendId);
bool DoesUserHaveThisUsername(Guid id, string username);
Task<bool> DoesUsernameExistAsync(string username);
}
}
|