| | | 1 | | using MUNity.Base; |
| | | 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 | | /// <summary> |
| | | 14 | | /// The committees are listed inside each Conference. Every conference |
| | | 15 | | /// needs to create its own list of committees, they should not be reused inside of other |
| | | 16 | | /// Conferences. The seats of the committee are defined by the DelegateRoles. |
| | | 17 | | /// |
| | | 18 | | /// For example a delegate role for Germany that references this committee would be one seat for germany. |
| | | 19 | | /// Two roles of the same State in this committee would also mean two seats. |
| | | 20 | | /// |
| | | 21 | | /// You cannot define seats for press or ngos inside a committee. |
| | | 22 | | /// </summary> |
| | | 23 | | public class Committee |
| | | 24 | | { |
| | | 25 | | /// <summary> |
| | | 26 | | /// The id of the committee. |
| | | 27 | | /// </summary> |
| | 47 | 28 | | public string CommitteeId { get; set; } = ""; |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// The short name of the committee |
| | | 32 | | /// </summary> |
| | | 33 | | [Required] |
| | | 34 | | [MaxLength(150)] |
| | 16 | 35 | | public string Name { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// The full (long) name of the committee |
| | | 39 | | /// </summary> |
| | | 40 | | [MaxLength(250)] |
| | 16 | 41 | | public string FullName { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// A short for the committee. This is limited to ten characters but it should be between 2 and 5 letters. |
| | | 45 | | /// For example GA gor general assembly. |
| | | 46 | | /// </summary> |
| | | 47 | | [MaxLength(10)] |
| | 29 | 48 | | public string CommitteeShort { get; set; } |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// The article of the committee. This may very depending on the language of the conference. |
| | | 52 | | /// For english conferences it will be "the", for german conferences it will be "der, die, das". |
| | | 53 | | /// </summary> |
| | | 54 | | [MaxLength(10)] |
| | 7 | 55 | | public string Article { get; set; } |
| | | 56 | | |
| | 8 | 57 | | public CommitteeTypes CommitteeType { get; set; } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// The ResolutlyCommittee is the parent or head committee of this committee. |
| | | 61 | | /// </summary> |
| | 4 | 62 | | public Committee ResolutlyCommittee { get; set; } |
| | | 63 | | |
| | 27 | 64 | | public ICollection<Committee> ChildCommittees { get; set; } |
| | | 65 | | |
| | | 66 | | /// <summary> |
| | | 67 | | /// The conference of this committee. |
| | | 68 | | /// </summary> |
| | 319 | 69 | | public Conference Conference { get; set; } |
| | | 70 | | |
| | | 71 | | /// <summary> |
| | | 72 | | /// Topics of this committee. |
| | | 73 | | /// </summary> |
| | 37 | 74 | | public ICollection<CommitteeTopic> Topics { get; set; } |
| | | 75 | | |
| | | 76 | | /// <summary> |
| | | 77 | | /// List of sessions of the committee. |
| | | 78 | | /// </summary> |
| | 2 | 79 | | public ICollection<Session.CommitteeSession> Sessions { get; set; } |
| | | 80 | | |
| | 1 | 81 | | public ICollection<Resolution.ResolutionAuth> Resolutions { get; set; } |
| | | 82 | | |
| | | 83 | | |
| | 14 | 84 | | public Committee() |
| | 14 | 85 | | { |
| | 14 | 86 | | Topics = new List<CommitteeTopic>(); |
| | 14 | 87 | | ChildCommittees = new List<Committee>(); |
| | 14 | 88 | | } |
| | | 89 | | } |