| | 1 | | namespace Songhay.Models; |
| | 2 | |
|
| | 3 | | /// <summary> |
| | 4 | | /// Defines a managed representation of the OPML outline element. |
| | 5 | | /// </summary> |
| | 6 | | [Serializable] |
| | 7 | | [XmlRoot(ElementName = "outline")] |
| | 8 | | [DataContract(Name = "outline")] |
| | 9 | | public class OpmlOutline |
| | 10 | | { |
| | 11 | | /// <summary> |
| | 12 | | /// Gets or sets the Category. |
| | 13 | | /// </summary> |
| | 14 | | [XmlAttribute(AttributeName = "category")] |
| | 15 | | [JsonPropertyName("category")] |
| 9325 | 16 | | public string? Category { get; set; } |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Gets or sets the ID. |
| | 20 | | /// </summary> |
| | 21 | | [XmlAttribute(AttributeName = "id")] |
| | 22 | | [JsonPropertyName("id")] |
| 9321 | 23 | | public string? Id { get; set; } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// Gets or sets the outlines. |
| | 27 | | /// </summary> |
| | 28 | | [SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", |
| | 29 | | Justification = "Used for XML serialization.")] |
| | 30 | | [XmlElement(ElementName = "outline")] |
| | 31 | | [JsonPropertyName("outline")] |
| 26459 | 32 | | public OpmlOutline[] Outlines { get; set; } = Enumerable.Empty<OpmlOutline>().ToArray(); |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// Gets or sets the text. |
| | 36 | | /// </summary> |
| | 37 | | [XmlAttribute(AttributeName = "text")] |
| | 38 | | [JsonPropertyName("text")] |
| 9365 | 39 | | public string? Text { get; set; } |
| | 40 | |
|
| | 41 | | /// <summary> |
| | 42 | | /// Gets or sets the title. |
| | 43 | | /// </summary> |
| | 44 | | [XmlAttribute(AttributeName = "title")] |
| | 45 | | [JsonPropertyName("title")] |
| 9321 | 46 | | public string? Title { get; set; } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Gets or sets the type. |
| | 50 | | /// </summary> |
| | 51 | | [XmlAttribute(AttributeName = "type")] |
| | 52 | | [JsonPropertyName("type")] |
| 9359 | 53 | | public string? OutlineType { get; set; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets the URL. |
| | 57 | | /// </summary> |
| | 58 | | [XmlAttribute(AttributeName = "url")] |
| | 59 | | [JsonPropertyName("url")] |
| | 60 | | [SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", |
| | 61 | | Justification = "OPML does not recognize the concept of the System.Uri.")] |
| 34443 | 62 | | public string? Url { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets or sets the XML URL. |
| | 66 | | /// </summary> |
| | 67 | | [XmlAttribute(AttributeName = "xmlUrl")] |
| | 68 | | [JsonPropertyName("xmlUrl")] |
| | 69 | | [SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", |
| | 70 | | Justification = "OPML does not recognize the concept of the System.Uri.")] |
| 17889 | 71 | | public string? XmlUrl { get; set; } |
| | 72 | | } |