| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Text.Json.Serialization; |
| | | 4 | | |
| | | 5 | | namespace MediaBrowser.Model.Updates |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// Class PackageInfo. |
| | | 9 | | /// </summary> |
| | | 10 | | public class PackageInfo |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// Initializes a new instance of the <see cref="PackageInfo"/> class. |
| | | 14 | | /// </summary> |
| | | 15 | | public PackageInfo() |
| | | 16 | | { |
| | 143 | 17 | | Versions = Array.Empty<VersionInfo>(); |
| | 143 | 18 | | Category = string.Empty; |
| | 143 | 19 | | Name = string.Empty; |
| | 143 | 20 | | Overview = string.Empty; |
| | 143 | 21 | | Owner = string.Empty; |
| | 143 | 22 | | Description = string.Empty; |
| | 143 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Gets or sets the name. |
| | | 27 | | /// </summary> |
| | | 28 | | /// <value>The name.</value> |
| | | 29 | | [JsonPropertyName("name")] |
| | | 30 | | public string Name { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Gets or sets a long description of the plugin containing features or helpful explanations. |
| | | 34 | | /// </summary> |
| | | 35 | | /// <value>The description.</value> |
| | | 36 | | [JsonPropertyName("description")] |
| | | 37 | | public string Description { get; set; } |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// Gets or sets a short overview of what the plugin does. |
| | | 41 | | /// </summary> |
| | | 42 | | /// <value>The overview.</value> |
| | | 43 | | [JsonPropertyName("overview")] |
| | | 44 | | public string Overview { get; set; } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// Gets or sets the owner. |
| | | 48 | | /// </summary> |
| | | 49 | | /// <value>The owner.</value> |
| | | 50 | | [JsonPropertyName("owner")] |
| | | 51 | | public string Owner { get; set; } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// Gets or sets the category. |
| | | 55 | | /// </summary> |
| | | 56 | | /// <value>The category.</value> |
| | | 57 | | [JsonPropertyName("category")] |
| | | 58 | | public string Category { get; set; } |
| | | 59 | | |
| | | 60 | | /// <summary> |
| | | 61 | | /// Gets or sets the guid of the assembly associated with this plugin. |
| | | 62 | | /// This is used to identify the proper item for automatic updates. |
| | | 63 | | /// </summary> |
| | | 64 | | /// <value>The name.</value> |
| | | 65 | | [JsonPropertyName("guid")] |
| | | 66 | | public Guid Id { get; set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// Gets or sets the versions. |
| | | 70 | | /// </summary> |
| | | 71 | | /// <value>The versions.</value> |
| | | 72 | | [JsonPropertyName("versions")] |
| | | 73 | | #pragma warning disable CA2227 // Collection properties should be read only |
| | | 74 | | public IList<VersionInfo> Versions { get; set; } |
| | | 75 | | #pragma warning restore CA2227 // Collection properties should be read only |
| | | 76 | | |
| | | 77 | | /// <summary> |
| | | 78 | | /// Gets or sets the image url for the package. |
| | | 79 | | /// </summary> |
| | | 80 | | [JsonPropertyName("imageUrl")] |
| | | 81 | | public string? ImageUrl { get; set; } |
| | | 82 | | } |
| | | 83 | | } |