aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2020-12-20 16:29:28 +0000
committerBaronGreenback <jimcartlidge@yahoo.co.uk>2020-12-20 16:29:28 +0000
commit53e280b80fe0e0e5ffdcf636246aa4afdc9467a0 (patch)
tree5b4ccd539b190c7b011bc6d60c979dc500857de8
parent46c7499e2b6e5897caeb562d4c0eba89aed843f2 (diff)
json name override.
-rw-r--r--MediaBrowser.Common/Plugins/PluginManifest.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/MediaBrowser.Common/Plugins/PluginManifest.cs b/MediaBrowser.Common/Plugins/PluginManifest.cs
index 9c45e5d95..f93821429 100644
--- a/MediaBrowser.Common/Plugins/PluginManifest.cs
+++ b/MediaBrowser.Common/Plugins/PluginManifest.cs
@@ -13,68 +13,80 @@ namespace MediaBrowser.Common.Plugins
/// <summary>
/// Gets or sets the category of the plugin.
/// </summary>
+ [JsonPropertyName("category")]
public string Category { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the changelog information.
/// </summary>
+ [JsonPropertyName("changelog")]
public string Changelog { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the description of the plugin.
/// </summary>
+ [JsonPropertyName("description")]
public string Description { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the Global Unique Identifier for the plugin.
/// </summary>
- [JsonPropertyName("Guid")]
+ [JsonPropertyName("guid")]
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the Name of the plugin.
/// </summary>
+ [JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
/// <summary>
/// Gets or sets an overview of the plugin.
/// </summary>
+ [JsonPropertyName("overview")]
public string Overview { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the owner of the plugin.
/// </summary>
+ [JsonPropertyName("owner")]
public string Owner { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the compatibility version for the plugin.
/// </summary>
+ [JsonPropertyName("targetAbi")]
public string TargetAbi { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the timestamp of the plugin.
/// </summary>
+ [JsonPropertyName("timestamp")]
public DateTime Timestamp { get; set; }
/// <summary>
/// Gets or sets the Version number of the plugin.
/// </summary>
+ [JsonPropertyName("version")]
public string Version { get; set; } = string.Empty;
/// <summary>
/// Gets or sets a value indicating the operational status of this plugin.
/// </summary>
+ [JsonPropertyName("status")]
public PluginStatus Status { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this plugin should automatically update.
/// </summary>
+ [JsonPropertyName("autoUpdate")]
public bool AutoUpdate { get; set; } = true;
/// <summary>
/// Gets or sets a value indicating whether this plugin has an image.
/// Image must be located in the local plugin folder.
/// </summary>
+ [JsonPropertyName("imagePath")]
public string? ImagePath { get; set; }
}
}