diff options
Diffstat (limited to 'src/DevHive.Data/Repositories/Contracts/IUserRepository.cs')
| -rw-r--r-- | src/DevHive.Data/Repositories/Contracts/IUserRepository.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/DevHive.Data/Repositories/Contracts/IUserRepository.cs b/src/DevHive.Data/Repositories/Contracts/IUserRepository.cs new file mode 100644 index 0000000..74c4486 --- /dev/null +++ b/src/DevHive.Data/Repositories/Contracts/IUserRepository.cs @@ -0,0 +1,26 @@ +using DevHive.Data.Models; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace DevHive.Data.Repositories.Contracts +{ + public interface IUserRepository : IRepository<User> + { + public Task<bool> AddFriendAsync(User user, User friend); + + public IEnumerable<User> QueryAll(); + + public Task<User> GetByUsername(string username); + + public Task<bool> RemoveFriendAsync(User user, User friend); + + public bool DoesUserExist(Guid id); + + public bool DoesUserHaveThisUsername(Guid id, string username); + + public Task<bool> DoesUsernameExist(string username); + + public Task<bool> DoesEmailExist(string email); + } +} |
