| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Collections.ObjectModel; |
| | | 4 | | using System.Text; |
| | | 5 | | |
| | | 6 | | namespace MUNity.Models.Resolution |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// The Operative Section of a resolution containing the Paragraphs and the Amendments. |
| | | 10 | | /// </summary> |
| | | 11 | | public class OperativeSection |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// The Id of the operative Section |
| | | 15 | | /// </summary> |
| | 0 | 16 | | public string OperativeSectionId { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Operative Paragraphs of this Section. These are only the top Level Paragrapghs, Paragraphs can have Children |
| | | 20 | | /// </summary> |
| | 0 | 21 | | public List<OperativeParagraph> Paragraphs { get; set; } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// All Amendments to change the text of an operative paragraph. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public List<ChangeAmendment> ChangeAmendments { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// All Alemdnemts to add a new operative paragraph |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public List<AddAmendment> AddAmendments { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// All amendments to move an operative paragraph to a new position. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public List<MoveAmendment> MoveAmendments { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// All amendments to delete an operative paragraph. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public List<DeleteAmendment> DeleteAmendments { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Creates a new Operative Section and generates a new Guid for it and will init all list of paragraphs |
| | | 45 | | /// as new empty lists. |
| | | 46 | | /// </summary> |
| | 0 | 47 | | public OperativeSection() |
| | 0 | 48 | | { |
| | 0 | 49 | | OperativeSectionId = Guid.NewGuid().ToString(); |
| | 0 | 50 | | Paragraphs = new List<OperativeParagraph>(); |
| | 0 | 51 | | ChangeAmendments = new List<ChangeAmendment>(); |
| | 0 | 52 | | AddAmendments = new List<AddAmendment>(); |
| | 0 | 53 | | MoveAmendments = new List<MoveAmendment>(); |
| | 0 | 54 | | DeleteAmendments = new List<DeleteAmendment>(); |
| | 0 | 55 | | } |
| | | 56 | | } |
| | | 57 | | } |