| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.ComponentModel.DataAnnotations; |
| | 4 | | using System.Text; |
| | 5 | |
|
| | 6 | | namespace MUNity.Schema.Conference |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// The request body to create a new conference. |
| | 10 | | /// </summary> |
| | 11 | | public class CreateConferenceRequest |
| | 12 | | { |
| | 13 | | /// <summary> |
| | 14 | | /// Every conference needs to be part of a project. for example Model United Nations Schleswig-Holstein 2021 wou |
| | 15 | | /// of the project Model United Nations Schleswig-Holstein. |
| | 16 | | /// You could also create a project named: "Model United Nations in Schools" and then create |
| | 17 | | /// a conference named: MUN2021@SchoolX and make it part of the project "Model United Nations in Schools". |
| | 18 | | /// </summary> |
| | 19 | | [Required] |
| 0 | 20 | | public string ProjectId { get; set; } |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// The Name of the conference for example MUN Schleswig-Holstein 2021. |
| | 24 | | /// </summary> |
| | 25 | | [Required] |
| 0 | 26 | | public string Name { get; set; } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// The full name of the conference for example Model United Nations Schleswig-Holstein 2021. |
| | 30 | | /// </summary> |
| | 31 | | [Required] |
| 0 | 32 | | public string FullName { get; set; } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// A short name of the conference. Like: MUN-SH 2021 |
| | 36 | | /// </summary> |
| | 37 | | [Required] |
| 0 | 38 | | public string ConferenceShort { get; set; } |
| | 39 | |
|
| | 40 | | /// <summary> |
| | 41 | | /// The start Date of the Conference. Note that the Schema should be 08/18/2018 07:22:16, 08/18/2018, 2018-08-18 |
| | 42 | | /// allowed format you can find here: https://docs.microsoft.com/de-de/dotnet/api/system.datetime.parse?view=net |
| | 43 | | /// <see cref="DateTime.Parse(string)"/> |
| | 44 | | /// </summary> |
| 0 | 45 | | public DateTime? StartDate { get; set; } |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// The end Date of the Conference. Note that the Schema should be 08/18/2018 07:22:16, 08/18/2018, 2018-08-18T0 |
| | 49 | | /// allowed format you can find here: https://docs.microsoft.com/de-de/dotnet/api/system.datetime.parse?view=net |
| | 50 | | /// <see cref="DateTime.Parse(string)"/> |
| | 51 | | /// </summary> |
| 0 | 52 | | public DateTime? EndDate { get; set; } |
| | 53 | | } |
| | 54 | |
|
| | 55 | | public class CreateConferenceResponse : AbstractResponse |
| | 56 | | { |
| | 57 | |
|
| | 58 | | public string ConferenceId { get; set; } |
| | 59 | | } |
| | 60 | | } |