PackageInfo.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #nullable enable
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Model.Updates
  5. {
  6. /// <summary>
  7. /// Class PackageInfo.
  8. /// </summary>
  9. public class PackageInfo
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="PackageInfo"/> class.
  13. /// </summary>
  14. public PackageInfo()
  15. {
  16. Versions = Array.Empty<VersionInfo>();
  17. Guid = string.Empty;
  18. Category = string.Empty;
  19. Name = string.Empty;
  20. Overview = string.Empty;
  21. Owner = string.Empty;
  22. Description = string.Empty;
  23. }
  24. /// <summary>
  25. /// Gets or sets the name.
  26. /// </summary>
  27. /// <value>The name.</value>
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// Gets or sets a long description of the plugin containing features or helpful explanations.
  31. /// </summary>
  32. /// <value>The description.</value>
  33. public string Description { get; set; }
  34. /// <summary>
  35. /// Gets or sets a short overview of what the plugin does.
  36. /// </summary>
  37. /// <value>The overview.</value>
  38. public string Overview { get; set; }
  39. /// <summary>
  40. /// Gets or sets the owner.
  41. /// </summary>
  42. /// <value>The owner.</value>
  43. public string Owner { get; set; }
  44. /// <summary>
  45. /// Gets or sets the category.
  46. /// </summary>
  47. /// <value>The category.</value>
  48. public string Category { get; set; }
  49. /// <summary>
  50. /// Gets or sets the guid of the assembly associated with this plugin.
  51. /// This is used to identify the proper item for automatic updates.
  52. /// </summary>
  53. /// <value>The name.</value>
  54. #pragma warning disable CA1720 // Identifier contains type name
  55. public string Guid { get; set; }
  56. #pragma warning restore CA1720 // Identifier contains type name
  57. /// <summary>
  58. /// Gets or sets the versions.
  59. /// </summary>
  60. /// <value>The versions.</value>
  61. #pragma warning disable CA2227 // Collection properties should be read only
  62. public IList<VersionInfo> Versions { get; set; }
  63. #pragma warning restore CA2227 // Collection properties should be read only
  64. /// <summary>
  65. /// Gets or sets the image url for the package.
  66. /// </summary>
  67. public string? ImageUrl { get; set; }
  68. }
  69. }