jellyfin/MediaBrowser.Model/Updates/PackageInfo.cs

84 lines
2.6 KiB
C#
Raw Normal View History

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