blob: 494f540420769043154815e274a905d90dc39882 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DevHive.Data.Models;
namespace DevHive.Data.Interfaces
{
public interface IUserRepository : IRepository<User>
{
Task<bool> AddRoleToUser(User user, string roleName);
Task<User> GetByUsernameAsync(string username);
Task<bool> UpdateProfilePicture(Guid userId, string pictureUrl);
Task<bool> VerifyPassword(User user, string password);
Task<bool> IsInRoleAsync(User user, string roleName);
Task<bool> ValidateFriendsCollectionAsync(List<string> usernames);
Task<bool> DoesEmailExistAsync(string email);
Task<bool> DoesUserExistAsync(Guid id);
Task<bool> DoesUsernameExistAsync(string username);
Task<bool> DoesUserHaveThisUsernameAsync(Guid id, string username);
}
}
|