PluginInfo.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. using MediaBrowser.Model.Updates;
  2. using ProtoBuf;
  3. using System;
  4. namespace MediaBrowser.Model.Plugins
  5. {
  6. /// <summary>
  7. /// This is a serializable stub class that is used by the api to provide information about installed plugins.
  8. /// </summary>
  9. [ProtoContract]
  10. public class PluginInfo
  11. {
  12. /// <summary>
  13. /// Gets or sets the name.
  14. /// </summary>
  15. /// <value>The name.</value>
  16. [ProtoMember(1)]
  17. public string Name { get; set; }
  18. /// <summary>
  19. /// Gets or sets the configuration date last modified.
  20. /// </summary>
  21. /// <value>The configuration date last modified.</value>
  22. [ProtoMember(3)]
  23. public DateTime ConfigurationDateLastModified { get; set; }
  24. /// <summary>
  25. /// Gets or sets the version.
  26. /// </summary>
  27. /// <value>The version.</value>
  28. [ProtoMember(4)]
  29. public string Version { get; set; }
  30. /// <summary>
  31. /// Gets or sets the name of the assembly file.
  32. /// </summary>
  33. /// <value>The name of the assembly file.</value>
  34. [ProtoMember(5)]
  35. public string AssemblyFileName { get; set; }
  36. /// <summary>
  37. /// Gets or sets the name of the configuration file.
  38. /// </summary>
  39. /// <value>The name of the configuration file.</value>
  40. [ProtoMember(6)]
  41. public string ConfigurationFileName { get; set; }
  42. /// <summary>
  43. /// Gets or sets the description.
  44. /// </summary>
  45. /// <value>The description.</value>
  46. [ProtoMember(7)]
  47. public string Description { get; set; }
  48. /// <summary>
  49. /// Gets or sets the unique id.
  50. /// </summary>
  51. /// <value>The unique id.</value>
  52. [ProtoMember(9)]
  53. public Guid Id { get; set; }
  54. /// <summary>
  55. /// Whether or not this plug-in should be automatically updated when a
  56. /// compatible new version is released
  57. /// </summary>
  58. /// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value>
  59. [ProtoMember(10)]
  60. public bool EnableAutoUpdate { get; set; }
  61. /// <summary>
  62. /// The classification of updates to which to subscribe.
  63. /// Options are: Dev, Beta or Release
  64. /// </summary>
  65. /// <value>The update class.</value>
  66. [ProtoMember(11)]
  67. public PackageVersionClass UpdateClass { get; set; }
  68. /// <summary>
  69. /// Gets or sets the minimum required UI version.
  70. /// </summary>
  71. /// <value>The minimum required UI version.</value>
  72. [ProtoMember(12)]
  73. public string MinimumRequiredUIVersion { get; set; }
  74. }
  75. }