blob: 19bb939d1773705dfded277673802c6186459730 (
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
24
25
26
27
|
using System;
using System.Threading.Tasks;
using DevHive.Common.Models.Identity;
using DevHive.Services.Models.Identity.User;
using DevHive.Services.Models.Language;
using DevHive.Services.Models.Technology;
namespace DevHive.Services.Interfaces
{
public interface IUserService
{
Task<TokenModel> LoginUser(LoginServiceModel loginModel);
Task<TokenModel> RegisterUser(RegisterServiceModel registerModel);
Task<bool> AddFriend(Guid userId, Guid friendId);
Task<UserServiceModel> GetFriend(string username);
Task<UserServiceModel> GetUserById(Guid id);
Task<UserServiceModel> UpdateUser(UpdateUserServiceModel updateModel);
Task DeleteUser(Guid id);
Task<bool> RemoveFriend(Guid userId, Guid friendId);
Task<bool> ValidJWT(Guid id, string rawTokenData);
}
}
|