diff options
Diffstat (limited to 'MediaBrowser.Model/Updates/PackageInfo.cs')
| -rw-r--r-- | MediaBrowser.Model/Updates/PackageInfo.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Updates/PackageInfo.cs b/MediaBrowser.Model/Updates/PackageInfo.cs index 77e2d8d88..63fd71742 100644 --- a/MediaBrowser.Model/Updates/PackageInfo.cs +++ b/MediaBrowser.Model/Updates/PackageInfo.cs @@ -1,6 +1,7 @@ #nullable enable using System; using System.Collections.Generic; +using System.Text.Json.Serialization; namespace MediaBrowser.Model.Updates { @@ -27,30 +28,35 @@ namespace MediaBrowser.Model.Updates /// Gets or sets the name. /// </summary> /// <value>The name.</value> + [JsonPropertyName("name")] public string Name { get; set; } /// <summary> /// Gets or sets a long description of the plugin containing features or helpful explanations. /// </summary> /// <value>The description.</value> + /// [JsonPropertyName("description")] public string Description { get; set; } /// <summary> /// Gets or sets a short overview of what the plugin does. /// </summary> /// <value>The overview.</value> + [JsonPropertyName("overview")] public string Overview { get; set; } /// <summary> /// Gets or sets the owner. /// </summary> /// <value>The owner.</value> + [JsonPropertyName("owner")] public string Owner { get; set; } /// <summary> /// Gets or sets the category. /// </summary> /// <value>The category.</value> + [JsonPropertyName("category")] public string Category { get; set; } /// <summary> @@ -58,6 +64,7 @@ namespace MediaBrowser.Model.Updates /// This is used to identify the proper item for automatic updates. /// </summary> /// <value>The name.</value> + [JsonPropertyName("guid")] #pragma warning disable CA1720 // Identifier contains type name public string Guid { get; set; } #pragma warning restore CA1720 // Identifier contains type name @@ -66,6 +73,7 @@ namespace MediaBrowser.Model.Updates /// Gets or sets the versions. /// </summary> /// <value>The versions.</value> + [JsonPropertyName("versions")] #pragma warning disable CA2227 // Collection properties should be read only public IList<VersionInfo> Versions { get; set; } #pragma warning restore CA2227 // Collection properties should be read only @@ -73,6 +81,7 @@ namespace MediaBrowser.Model.Updates /// <summary> /// Gets or sets the image url for the package. /// </summary> + [JsonPropertyName("imageUrl")] public string? ImageUrl { get; set; } } } |
