json name override.

This commit is contained in:
BaronGreenback 2020-12-20 16:29:28 +00:00
parent 46c7499e2b
commit 53e280b80f

View File

@ -13,68 +13,80 @@ namespace MediaBrowser.Common.Plugins
/// <summary> /// <summary>
/// Gets or sets the category of the plugin. /// Gets or sets the category of the plugin.
/// </summary> /// </summary>
[JsonPropertyName("category")]
public string Category { get; set; } = string.Empty; public string Category { get; set; } = string.Empty;
/// <summary> /// <summary>
/// Gets or sets the changelog information. /// Gets or sets the changelog information.
/// </summary> /// </summary>
[JsonPropertyName("changelog")]
public string Changelog { get; set; } = string.Empty; public string Changelog { get; set; } = string.Empty;
/// <summary> /// <summary>
/// Gets or sets the description of the plugin. /// Gets or sets the description of the plugin.
/// </summary> /// </summary>
[JsonPropertyName("description")]
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
/// <summary> /// <summary>
/// Gets or sets the Global Unique Identifier for the plugin. /// Gets or sets the Global Unique Identifier for the plugin.
/// </summary> /// </summary>
[JsonPropertyName("Guid")] [JsonPropertyName("guid")]
public Guid Id { get; set; } public Guid Id { get; set; }
/// <summary> /// <summary>
/// Gets or sets the Name of the plugin. /// Gets or sets the Name of the plugin.
/// </summary> /// </summary>
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
/// <summary> /// <summary>
/// Gets or sets an overview of the plugin. /// Gets or sets an overview of the plugin.
/// </summary> /// </summary>
[JsonPropertyName("overview")]
public string Overview { get; set; } = string.Empty; public string Overview { get; set; } = string.Empty;
/// <summary> /// <summary>
/// Gets or sets the owner of the plugin. /// Gets or sets the owner of the plugin.
/// </summary> /// </summary>
[JsonPropertyName("owner")]
public string Owner { get; set; } = string.Empty; public string Owner { get; set; } = string.Empty;
/// <summary> /// <summary>
/// Gets or sets the compatibility version for the plugin. /// Gets or sets the compatibility version for the plugin.
/// </summary> /// </summary>
[JsonPropertyName("targetAbi")]
public string TargetAbi { get; set; } = string.Empty; public string TargetAbi { get; set; } = string.Empty;
/// <summary> /// <summary>
/// Gets or sets the timestamp of the plugin. /// Gets or sets the timestamp of the plugin.
/// </summary> /// </summary>
[JsonPropertyName("timestamp")]
public DateTime Timestamp { get; set; } public DateTime Timestamp { get; set; }
/// <summary> /// <summary>
/// Gets or sets the Version number of the plugin. /// Gets or sets the Version number of the plugin.
/// </summary> /// </summary>
[JsonPropertyName("version")]
public string Version { get; set; } = string.Empty; public string Version { get; set; } = string.Empty;
/// <summary> /// <summary>
/// Gets or sets a value indicating the operational status of this plugin. /// Gets or sets a value indicating the operational status of this plugin.
/// </summary> /// </summary>
[JsonPropertyName("status")]
public PluginStatus Status { get; set; } public PluginStatus Status { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this plugin should automatically update. /// Gets or sets a value indicating whether this plugin should automatically update.
/// </summary> /// </summary>
[JsonPropertyName("autoUpdate")]
public bool AutoUpdate { get; set; } = true; public bool AutoUpdate { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this plugin has an image. /// Gets or sets a value indicating whether this plugin has an image.
/// Image must be located in the local plugin folder. /// Image must be located in the local plugin folder.
/// </summary> /// </summary>
[JsonPropertyName("imagePath")]
public string? ImagePath { get; set; } public string? ImagePath { get; set; }
} }
} }