aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Models/Identity/User
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-01-17 15:30:09 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-01-17 15:30:09 +0200
commit8f6a50566a069c782482a167f601e6eca9588e73 (patch)
treef3732aab96e3e9be3180acbe5d0b07216629170c /src/DevHive.Services/Models/Identity/User
parent8d1d0b40d56f90248f948e474330258bf57cf0b6 (diff)
downloadDevHive-8f6a50566a069c782482a167f601e6eca9588e73.tar
DevHive-8f6a50566a069c782482a167f601e6eca9588e73.tar.gz
DevHive-8f6a50566a069c782482a167f601e6eca9588e73.zip
User update now updates languages, roles and friends
Diffstat (limited to 'src/DevHive.Services/Models/Identity/User')
-rw-r--r--src/DevHive.Services/Models/Identity/User/UpdateUserCollectionServiceModel.cs7
-rw-r--r--src/DevHive.Services/Models/Identity/User/UpdateUserServiceModel.cs12
2 files changed, 18 insertions, 1 deletions
diff --git a/src/DevHive.Services/Models/Identity/User/UpdateUserCollectionServiceModel.cs b/src/DevHive.Services/Models/Identity/User/UpdateUserCollectionServiceModel.cs
new file mode 100644
index 0000000..c40a980
--- /dev/null
+++ b/src/DevHive.Services/Models/Identity/User/UpdateUserCollectionServiceModel.cs
@@ -0,0 +1,7 @@
+namespace DevHive.Services.Models.Identity.User
+{
+ public class UpdateUserCollectionServiceModel
+ {
+ 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 96d1ff0..5b5a178 100644
--- a/src/DevHive.Services/Models/Identity/User/UpdateUserServiceModel.cs
+++ b/src/DevHive.Services/Models/Identity/User/UpdateUserServiceModel.cs
@@ -1,9 +1,19 @@
using System;
+using System.Collections.Generic;
namespace DevHive.Services.Models.Identity.User
{
- public class UpdateUserServiceModel : UserServiceModel
+ public class UpdateUserServiceModel : BaseUserServiceModel
{
public Guid Id { get; set; }
+
+ public IList<UpdateUserCollectionServiceModel> Roles { get; set; } = new List<UpdateUserCollectionServiceModel>();
+
+ public IList<UpdateUserCollectionServiceModel> Friends { get; set; } = new List<UpdateUserCollectionServiceModel>();
+
+ public IList<UpdateUserCollectionServiceModel> Languages { get; set; } = new List<UpdateUserCollectionServiceModel>();
+
+ public IList<UpdateUserCollectionServiceModel> Technologies { get; set; } = new List<UpdateUserCollectionServiceModel>();
+
}
}