| | 1 | | using MUNity.Base; |
| | 2 | | using System; |
| | 3 | | using System.Collections.Generic; |
| | 4 | | using System.Linq; |
| | 5 | | using System.Threading.Tasks; |
| | 6 | |
|
| | 7 | | namespace MUNity.Database.Models.Simulation; |
| | 8 | |
|
| | 9 | | /// <summary> |
| | 10 | | /// A Simulation (virtual Committee) can have multiple AgendaItems. Each AgendaItem can have multiple petitions. |
| | 11 | | /// </summary> |
| | 12 | | public class AgendaItem |
| | 13 | | { |
| | 14 | | /// <summary> |
| | 15 | | /// The index to identify the agenda item at the backend. |
| | 16 | | /// </summary> |
| 0 | 17 | | public int AgendaItemId { get; set; } |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// A displayname of the agenda Item. |
| | 21 | | /// </summary> |
| 0 | 22 | | public string Name { get; set; } |
| 0 | 23 | | public string Description { get; set; } |
| 0 | 24 | | public EAgendaItemStatuses Status { get; set; } |
| 0 | 25 | | public DateTime? PlannedDate { get; set; } |
| 0 | 26 | | public DateTime? DueDate { get; set; } |
| 0 | 27 | | public DateTime? DoneDate { get; set; } |
| 0 | 28 | | public int OrderIndex { get; set; } |
| 0 | 29 | | public ICollection<Petition> Petitions { get; set; } |
| | 30 | |
|
| 0 | 31 | | public Simulation Simulation { get; set; } |
| | 32 | |
|
| 0 | 33 | | public AgendaItem() |
| 0 | 34 | | { |
| 0 | 35 | | this.Petitions = new List<Petition>(); |
| 0 | 36 | | } |
| | 37 | | //public AgendaItem(IAgendaItem agendaItem) |
| | 38 | | //{ |
| | 39 | | // this.Name = agendaItem.Name; |
| | 40 | | // this.Description = agendaItem.Description; |
| | 41 | | // this.Status = agendaItem.Status; |
| | 42 | | // this.PlannedDate = agendaItem.PlannedDate; |
| | 43 | | // this.DueDate = agendaItem.DueDate; |
| | 44 | | // this.DoneDate = agendaItem.DoneDate; |
| | 45 | | // this.OrderIndex = agendaItem.OrderIndex; |
| | 46 | | // this.Petitions = new List<Petition>(); |
| | 47 | | //} |
| | 48 | | } |