jellyfin-server/MediaBrowser.Model/Updates/PackageInfo.cs

84 lines
2.6 KiB
C#
Raw Permalink Normal View History

using System;
2019-10-08 18:51:11 +00:00
using System.Collections.Generic;
2020-12-15 16:37:11 +00:00
using System.Text.Json.Serialization;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Model.Updates
{
/// <summary>
2020-02-04 00:49:27 +00:00
/// Class PackageInfo.
2018-12-27 23:27:57 +00:00
/// </summary>
public class PackageInfo
{
2020-12-06 23:48:54 +00:00
/// <summary>
/// Initializes a new instance of the <see cref="PackageInfo"/> class.
/// </summary>
public PackageInfo()
{
Versions = Array.Empty<VersionInfo>();
Category = string.Empty;
Name = string.Empty;
Overview = string.Empty;
Owner = string.Empty;
Description = string.Empty;
}
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
2020-12-15 16:37:11 +00:00
[JsonPropertyName("name")]
2020-12-06 23:48:54 +00:00
public string Name { get; set; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets or sets a long description of the plugin containing features or helpful explanations.
2018-12-27 23:27:57 +00:00
/// </summary>
/// <value>The description.</value>
[JsonPropertyName("description")]
2020-12-06 23:48:54 +00:00
public string Description { get; set; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets or sets a short overview of what the plugin does.
2018-12-27 23:27:57 +00:00
/// </summary>
/// <value>The overview.</value>
2020-12-15 16:37:11 +00:00
[JsonPropertyName("overview")]
2020-12-06 23:48:54 +00:00
public string Overview { get; set; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets or sets the owner.
/// </summary>
/// <value>The owner.</value>
2020-12-15 16:37:11 +00:00
[JsonPropertyName("owner")]
2020-12-06 23:48:54 +00:00
public string Owner { get; set; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets or sets the category.
/// </summary>
/// <value>The category.</value>
2020-12-15 16:37:11 +00:00
[JsonPropertyName("category")]
2020-12-06 23:48:54 +00:00
public string Category { get; set; }
2018-12-27 23:27:57 +00:00
/// <summary>
2020-12-06 23:48:54 +00:00
/// Gets or sets the guid of the assembly associated with this plugin.
2018-12-27 23:27:57 +00:00
/// This is used to identify the proper item for automatic updates.
/// </summary>
/// <value>The name.</value>
2020-12-15 16:37:11 +00:00
[JsonPropertyName("guid")]
2021-06-06 16:11:51 +00:00
public Guid Id { get; set; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets or sets the versions.
/// </summary>
/// <value>The versions.</value>
2020-12-15 16:37:11 +00:00
[JsonPropertyName("versions")]
2020-12-06 23:48:54 +00:00
#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
2020-07-17 15:08:29 +00:00
2018-12-27 23:27:57 +00:00
/// <summary>
2020-12-31 15:59:48 +00:00
/// Gets or sets the image url for the package.
2018-12-27 23:27:57 +00:00
/// </summary>
2020-12-31 15:59:48 +00:00
[JsonPropertyName("imageUrl")]
public string? ImageUrl { get; set; }
2018-12-27 23:27:57 +00:00
}
}