You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Model/Updates/PackageInfo.cs

84 lines
2.6 KiB

using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
6 years ago
namespace MediaBrowser.Model.Updates
{
/// <summary>
/// Class PackageInfo.
6 years ago
/// </summary>
public class PackageInfo
{
4 years ago
/// <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;
}
6 years ago
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
[JsonPropertyName("name")]
4 years ago
public string Name { get; set; }
6 years ago
/// <summary>
/// Gets or sets a long description of the plugin containing features or helpful explanations.
6 years ago
/// </summary>
/// <value>The description.</value>
[JsonPropertyName("description")]
4 years ago
public string Description { get; set; }
6 years ago
/// <summary>
/// Gets or sets a short overview of what the plugin does.
6 years ago
/// </summary>
/// <value>The overview.</value>
[JsonPropertyName("overview")]
4 years ago
public string Overview { get; set; }
6 years ago
/// <summary>
/// Gets or sets the owner.
/// </summary>
/// <value>The owner.</value>
[JsonPropertyName("owner")]
4 years ago
public string Owner { get; set; }
6 years ago
/// <summary>
/// Gets or sets the category.
/// </summary>
/// <value>The category.</value>
[JsonPropertyName("category")]
4 years ago
public string Category { get; set; }
6 years ago
/// <summary>
4 years ago
/// Gets or sets the guid of the assembly associated with this plugin.
6 years ago
/// This is used to identify the proper item for automatic updates.
/// </summary>
/// <value>The name.</value>
[JsonPropertyName("guid")]
4 years ago
public Guid Id { get; set; }
6 years ago
/// <summary>
/// Gets or sets the versions.
/// </summary>
/// <value>The versions.</value>
[JsonPropertyName("versions")]
4 years ago
#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
6 years ago
/// <summary>
/// Gets or sets the image url for the package.
6 years ago
/// </summary>
[JsonPropertyName("imageUrl")]
public string? ImageUrl { get; set; }
6 years ago
}
}