aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Models/Identity/User/UserWebModel.cs
blob: 1a5484a412f9c39908ed790b926659e66515c2a0 (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
28
29
30
31
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
using DevHive.Common.Models.Misc;
using DevHive.Web.Models.Identity.Role;
using DevHive.Web.Models.Language;
using DevHive.Web.Models.Technology;

namespace DevHive.Web.Models.Identity.User
{
	public class UserWebModel : BaseUserWebModel
	{
		[NotNull]
		[Required]
		public HashSet<RoleWebModel> Roles { get; set; } = new();

		[NotNull]
		[Required]
		public HashSet<UsernameWebModel> Friends { get; set; } = new();

		[NotNull]
		[Required]
		public HashSet<LanguageWebModel> Languages { get; set; } = new();

		[NotNull]
		[Required]
		public HashSet<TechnologyWebModel> Technologies { get; set; } = new();

		public List<IdModel> Posts { get; set; } = new();
	}
}