| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Collections.ObjectModel; |
| | | 4 | | using System.ComponentModel.DataAnnotations; |
| | | 5 | | using System.Text; |
| | | 6 | | |
| | | 7 | | namespace MUNity.Models.Resolution |
| | | 8 | | { |
| | | 9 | | /// <summary> |
| | | 10 | | /// The preamble of a resolution containing a list of paragraphs. |
| | | 11 | | /// </summary> |
| | | 12 | | public class ResolutionPreamble |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// The id of the preamble |
| | | 16 | | /// </summary> |
| | | 17 | | [Key] |
| | 0 | 18 | | public string PreambleId { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// a list of paragraphs of the preamble. |
| | | 22 | | /// </summary> |
| | 0 | 23 | | public List<PreambleParagraph> Paragraphs { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// creates a new preamble. |
| | | 27 | | /// </summary> |
| | 0 | 28 | | public ResolutionPreamble() |
| | 0 | 29 | | { |
| | 0 | 30 | | PreambleId = Guid.NewGuid().ToString(); |
| | 0 | 31 | | Paragraphs = new List<PreambleParagraph>(); |
| | 0 | 32 | | } |
| | | 33 | | } |
| | | 34 | | } |