jellyfin/MediaBrowser.Common/Plugins/PluginManifest.cs

81 lines
2.4 KiB
C#
Raw Normal View History

2020-12-06 18:48:54 -05:00
#nullable enable
using System;
2020-12-18 15:37:35 -05:00
using System.Text.Json.Serialization;
2020-12-06 18:48:54 -05:00
using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Common.Plugins
{
/// <summary>
/// Defines a Plugin manifest file.
/// </summary>
public class PluginManifest
{
/// <summary>
/// Gets or sets the category of the plugin.
/// </summary>
public string Category { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the changelog information.
/// </summary>
public string Changelog { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the description of the plugin.
/// </summary>
public string Description { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the Global Unique Identifier for the plugin.
/// </summary>
2020-12-18 15:37:35 -05:00
[JsonPropertyName("Guid")]
public Guid Id { get; set; }
2020-12-06 18:48:54 -05:00
/// <summary>
/// Gets or sets the Name of the plugin.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// Gets or sets an overview of the plugin.
/// </summary>
public string Overview { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the owner of the plugin.
/// </summary>
public string Owner { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the compatibility version for the plugin.
/// </summary>
public string TargetAbi { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the timestamp of the plugin.
/// </summary>
public DateTime Timestamp { get; set; }
/// <summary>
/// Gets or sets the Version number of the plugin.
/// </summary>
public string Version { get; set; } = string.Empty;
/// <summary>
2020-12-17 08:37:13 -05:00
/// Gets or sets a value indicating the operational status of this plugin.
2020-12-06 18:48:54 -05:00
/// </summary>
public PluginStatus Status { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this plugin should automatically update.
/// </summary>
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>
2020-12-18 15:52:44 -05:00
public string? ImagePath { get; set; }
2020-12-06 18:48:54 -05:00
}
}