| | | 1 | | using MUNity.Models.Resolution; |
| | | 2 | | using System; |
| | | 3 | | using System.Collections.Generic; |
| | | 4 | | using System.Text; |
| | | 5 | | |
| | | 6 | | namespace MUNity.Extensions.ResolutionExtensions |
| | | 7 | | { |
| | | 8 | | |
| | | 9 | | /// <summary> |
| | | 10 | | /// Methods to work with the Preamble of a resolution. |
| | | 11 | | /// </summary> |
| | | 12 | | public static class PreambleParagraphExtensions |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// Creates a new preamble paragraph. |
| | | 16 | | /// </summary> |
| | | 17 | | /// <param name="resolution"></param> |
| | | 18 | | /// <param name="text">The new Text of the added paragraph</param> |
| | | 19 | | /// <returns></returns> |
| | | 20 | | public static PreambleParagraph CreatePreambleParagraph(this Resolution resolution, string text = "") |
| | 0 | 21 | | { |
| | 0 | 22 | | var paragraph = new PreambleParagraph(); |
| | 0 | 23 | | paragraph.Text = text; |
| | 0 | 24 | | resolution.Preamble.Paragraphs.Add(paragraph); |
| | 0 | 25 | | return paragraph; |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Checks if the opertor is valid. |
| | | 32 | | /// NOTE THIS IS NOT IMPLEMENTED YET AND WILL ALWAYS RETURN FALSE! |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="paragraph"></param> |
| | | 35 | | /// <returns></returns> |
| | | 36 | | public static bool HasValidOperator(this PreambleParagraph paragraph) |
| | 0 | 37 | | { |
| | 0 | 38 | | return false; |
| | 0 | 39 | | } |
| | | 40 | | } |
| | | 41 | | } |