| | | 1 | | using MUNity.Database.Models.Conference.Roles; |
| | | 2 | | using System; |
| | | 3 | | using System.Collections.Generic; |
| | | 4 | | using System.ComponentModel.DataAnnotations; |
| | | 5 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 6 | | using System.Linq; |
| | | 7 | | using System.Runtime.Serialization; |
| | | 8 | | using System.Text.Json.Serialization; |
| | | 9 | | using System.Threading.Tasks; |
| | | 10 | | |
| | | 11 | | namespace MUNity.Database.Models.Conference |
| | | 12 | | { |
| | | 13 | | |
| | | 14 | | /// <summary> |
| | | 15 | | /// A delegation is a model that groups different types of delegate roles |
| | | 16 | | /// |
| | | 17 | | /// <seealso cref="Roles.ConferenceDelegateRole"/> |
| | | 18 | | /// </summary> |
| | | 19 | | public class Delegation |
| | | 20 | | { |
| | 757 | 21 | | public string DelegationId { get; set; } = ""; |
| | | 22 | | |
| | | 23 | | [MaxLength(150)] |
| | | 24 | | [Required] |
| | 156 | 25 | | public string Name { get; set; } |
| | | 26 | | |
| | | 27 | | [MaxLength(250)] |
| | 4 | 28 | | public string FullName { get; set; } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Short Term with a max length of 10 characters |
| | | 32 | | /// </summary> |
| | | 33 | | [MaxLength(10)] |
| | 4 | 34 | | public string DelegationShort { get; set; } |
| | | 35 | | |
| | 117 | 36 | | public Conference Conference { get; set; } |
| | | 37 | | |
| | 0 | 38 | | public Delegation ParentDelegation { get; set; } |
| | | 39 | | |
| | 0 | 40 | | public ICollection<Delegation> ChildDelegations { get; set; } |
| | | 41 | | |
| | 142 | 42 | | public ICollection<ConferenceDelegateRole> Roles { get; set; } |
| | | 43 | | |
| | 0 | 44 | | public ICollection<DelegationApplicationPickedDelegation> DelegationApplications { get; set; } |
| | | 45 | | |
| | 39 | 46 | | public Delegation() |
| | 39 | 47 | | { |
| | | 48 | | |
| | 39 | 49 | | } |
| | | 50 | | } |
| | | 51 | | } |