aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Models/Identity/User
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Services/Models/Identity/User')
-rw-r--r--src/DevHive.Services/Models/Identity/User/FriendServiceModel.cs3
-rw-r--r--src/DevHive.Services/Models/Identity/User/UpdateFriendServiceModel.cs (renamed from src/DevHive.Services/Models/Identity/User/UpdateUserCollectionServiceModel.cs)5
-rw-r--r--src/DevHive.Services/Models/Identity/User/UpdateUserServiceModel.cs11
3 files changed, 14 insertions, 5 deletions
diff --git a/src/DevHive.Services/Models/Identity/User/FriendServiceModel.cs b/src/DevHive.Services/Models/Identity/User/FriendServiceModel.cs
index 63d57f7..a784f5c 100644
--- a/src/DevHive.Services/Models/Identity/User/FriendServiceModel.cs
+++ b/src/DevHive.Services/Models/Identity/User/FriendServiceModel.cs
@@ -1,7 +1,10 @@
+using System;
+
namespace DevHive.Services.Models.Identity.User
{
public class FriendServiceModel
{
+ public Guid Id { get; set; }
public string UserName { get; set; }
}
}
diff --git a/src/DevHive.Services/Models/Identity/User/UpdateUserCollectionServiceModel.cs b/src/DevHive.Services/Models/Identity/User/UpdateFriendServiceModel.cs
index c40a980..83fcc34 100644
--- a/src/DevHive.Services/Models/Identity/User/UpdateUserCollectionServiceModel.cs
+++ b/src/DevHive.Services/Models/Identity/User/UpdateFriendServiceModel.cs
@@ -1,7 +1,10 @@
+using System;
+
namespace DevHive.Services.Models.Identity.User
{
- public class UpdateUserCollectionServiceModel
+ public class UpdateFriendServiceModel
{
+ public Guid Id { get; set; }
public string Name { get; set; }
}
}
diff --git a/src/DevHive.Services/Models/Identity/User/UpdateUserServiceModel.cs b/src/DevHive.Services/Models/Identity/User/UpdateUserServiceModel.cs
index 835bf54..9277e3e 100644
--- a/src/DevHive.Services/Models/Identity/User/UpdateUserServiceModel.cs
+++ b/src/DevHive.Services/Models/Identity/User/UpdateUserServiceModel.cs
@@ -1,5 +1,8 @@
using System;
using System.Collections.Generic;
+using DevHive.Services.Models.Identity.Role;
+using DevHive.Services.Models.Language;
+using DevHive.Services.Models.Technology;
namespace DevHive.Services.Models.Identity.User
{
@@ -9,13 +12,13 @@ namespace DevHive.Services.Models.Identity.User
public string Password { get; set; }
- public HashSet<UpdateUserCollectionServiceModel> Roles { get; set; } = new HashSet<UpdateUserCollectionServiceModel>();
+ public HashSet<UpdateRoleServiceModel> Roles { get; set; } = new HashSet<UpdateRoleServiceModel>();
- public HashSet<UpdateUserCollectionServiceModel> Friends { get; set; } = new HashSet<UpdateUserCollectionServiceModel>();
+ public HashSet<UpdateFriendServiceModel> Friends { get; set; } = new HashSet<UpdateFriendServiceModel>();
- public HashSet<UpdateUserCollectionServiceModel> Languages { get; set; } = new HashSet<UpdateUserCollectionServiceModel>();
+ public HashSet<UpdateLanguageServiceModel> Languages { get; set; } = new HashSet<UpdateLanguageServiceModel>();
- public HashSet<UpdateUserCollectionServiceModel> Technologies { get; set; } = new HashSet<UpdateUserCollectionServiceModel>();
+ public HashSet<UpdateTechnologyServiceModel> Technologies { get; set; } = new HashSet<UpdateTechnologyServiceModel>();
}
}