| | | 1 | | using System.Collections.Generic; |
| | | 2 | | |
| | | 3 | | namespace DirectSight.Reporting.Builders.Rendering; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents a line item within a card. |
| | | 7 | | /// </summary> |
| | | 8 | | public class CardLineItem |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Initializes a new instance of the <see cref="CardLineItem" /> class. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <param name="header">The header.</param> |
| | | 14 | | /// <param name="text">The text.</param> |
| | | 15 | | /// <param name="tooltip">The tooltip.</param> |
| | 310 | 16 | | public CardLineItem(string header, string text, string tooltip) |
| | 310 | 17 | | { |
| | 310 | 18 | | this.Header = header; |
| | 310 | 19 | | this.Text = text; |
| | 310 | 20 | | this.Tooltip = tooltip; |
| | 310 | 21 | | } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of the <see cref="CardLineItem" /> class. |
| | | 25 | | /// </summary> |
| | | 26 | | /// <param name="header">The header.</param> |
| | | 27 | | /// <param name="text">The text.</param> |
| | | 28 | | /// <param name="tooltip">The tooltip.</param> |
| | | 29 | | /// <param name="alignment">The alignment.</param> |
| | 74 | 30 | | public CardLineItem(string header, string text, string tooltip, CardLineItemAlignment alignment) |
| | 74 | 31 | | { |
| | 74 | 32 | | this.Header = header; |
| | 74 | 33 | | this.Text = text; |
| | 74 | 34 | | this.Tooltip = tooltip; |
| | 74 | 35 | | this.Alignment = alignment; |
| | 74 | 36 | | } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Initializes a new instance of the <see cref="CardLineItem" /> class. |
| | | 40 | | /// </summary> |
| | | 41 | | /// <param name="header">The header.</param> |
| | | 42 | | /// <param name="links">The links.</param> |
| | 36 | 43 | | public CardLineItem(string header, params string[] links) |
| | 36 | 44 | | { |
| | 36 | 45 | | this.Header = header; |
| | 36 | 46 | | this.Links = links; |
| | 36 | 47 | | } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// Gets the header. |
| | | 51 | | /// </summary> |
| | 420 | 52 | | public string Header { get; } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Gets the text. |
| | | 56 | | /// </summary> |
| | 692 | 57 | | public string Text { get; } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// Gets the tooltip. |
| | | 61 | | /// </summary> |
| | 384 | 62 | | public string Tooltip { get; } |
| | | 63 | | |
| | | 64 | | /// <summary> |
| | | 65 | | /// Gets the links. |
| | | 66 | | /// </summary> |
| | 492 | 67 | | public IReadOnlyCollection<string> Links { get; } |
| | | 68 | | |
| | | 69 | | /// <summary> |
| | | 70 | | /// Gets the alignment. |
| | | 71 | | /// </summary> |
| | 384 | 72 | | public CardLineItemAlignment Alignment { get; } |
| | | 73 | | } |