1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #nullable enable
- using System;
- using System.Text.Json.Serialization;
- 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>
- [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")]
- 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; }
- }
- }
|