| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | |
| | | 3 | | namespace MUNity.Schema.Conference |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// A request body used when creating a new committee for a conference. |
| | | 7 | | /// </summary> |
| | | 8 | | public class CreateCommitteeRequest |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// The id of the conference that you want to create the committee at. |
| | | 12 | | /// </summary> |
| | | 13 | | [Required] |
| | | 14 | | [MaxLength(80)] |
| | 0 | 15 | | public string ConferenceId { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// The name of the committee for example: General Assembly |
| | | 19 | | /// The max length is 150 characters. |
| | | 20 | | /// </summary> |
| | | 21 | | [Required] |
| | | 22 | | [MaxLength(150)] |
| | 0 | 23 | | public string Name { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// The full name of the committee for example: United Nations General Assembly. |
| | | 27 | | /// The max length is 250 characters. |
| | | 28 | | /// </summary> |
| | | 29 | | [Required] |
| | | 30 | | [MaxLength(250)] |
| | 0 | 31 | | public string FullName { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// The short name of the committee for example: GA (for General Assembly) |
| | | 35 | | /// The Abbreviation (short name) has a max length of 10 characters. |
| | | 36 | | /// </summary> |
| | | 37 | | [Required] |
| | | 38 | | [MaxLength(10)] |
| | 0 | 39 | | public string Short { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// The article of the committe for example: the, der, die, le, la... |
| | | 43 | | /// the max length of the article is 10 characters. |
| | | 44 | | /// </summary> |
| | | 45 | | [Required] |
| | | 46 | | [MaxLength(10)] |
| | 0 | 47 | | public string Article { get; set; } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// An id of a parent committee. Leave this property null if you dont want to set any. |
| | | 51 | | /// </summary> |
| | 0 | 52 | | public string ResolutlyCommitteeId { get; set; } |
| | | 53 | | } |
| | | 54 | | |
| | | 55 | | public class CreateCommitteeResponse : AbstractResponse |
| | | 56 | | { |
| | | 57 | | |
| | | 58 | | public string NewCommitteeId { get; set; } |
| | | 59 | | } |
| | | 60 | | } |