PackageInfo.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Model.Updates
  4. {
  5. /// <summary>
  6. /// Class PackageInfo.
  7. /// </summary>
  8. public class PackageInfo
  9. {
  10. /// <summary>
  11. /// The internal id of this package.
  12. /// </summary>
  13. /// <value>The id.</value>
  14. public string id { get; set; }
  15. /// <summary>
  16. /// Gets or sets the name.
  17. /// </summary>
  18. /// <value>The name.</value>
  19. public string name { get; set; }
  20. /// <summary>
  21. /// Gets or sets the short description.
  22. /// </summary>
  23. /// <value>The short description.</value>
  24. public string shortDescription { get; set; }
  25. /// <summary>
  26. /// Gets or sets the overview.
  27. /// </summary>
  28. /// <value>The overview.</value>
  29. public string overview { get; set; }
  30. /// <summary>
  31. /// Gets or sets a value indicating whether this instance is premium.
  32. /// </summary>
  33. /// <value><c>true</c> if this instance is premium; otherwise, <c>false</c>.</value>
  34. public bool isPremium { get; set; }
  35. /// <summary>
  36. /// Gets or sets a value indicating whether this instance is adult only content.
  37. /// </summary>
  38. /// <value><c>true</c> if this instance is adult; otherwise, <c>false</c>.</value>
  39. public bool adult { get; set; }
  40. /// <summary>
  41. /// Gets or sets the rich desc URL.
  42. /// </summary>
  43. /// <value>The rich desc URL.</value>
  44. public string richDescUrl { get; set; }
  45. /// <summary>
  46. /// Gets or sets the thumb image.
  47. /// </summary>
  48. /// <value>The thumb image.</value>
  49. public string thumbImage { get; set; }
  50. /// <summary>
  51. /// Gets or sets the preview image.
  52. /// </summary>
  53. /// <value>The preview image.</value>
  54. public string previewImage { get; set; }
  55. /// <summary>
  56. /// Gets or sets the type.
  57. /// </summary>
  58. /// <value>The type.</value>
  59. public string type { get; set; }
  60. /// <summary>
  61. /// Gets or sets the target filename.
  62. /// </summary>
  63. /// <value>The target filename.</value>
  64. public string targetFilename { get; set; }
  65. /// <summary>
  66. /// Gets or sets the owner.
  67. /// </summary>
  68. /// <value>The owner.</value>
  69. public string owner { get; set; }
  70. /// <summary>
  71. /// Gets or sets the category.
  72. /// </summary>
  73. /// <value>The category.</value>
  74. public string category { get; set; }
  75. /// <summary>
  76. /// Gets or sets the catalog tile color.
  77. /// </summary>
  78. /// <value>The owner.</value>
  79. public string tileColor { get; set; }
  80. /// <summary>
  81. /// Gets or sets the feature id of this package (if premium).
  82. /// </summary>
  83. /// <value>The feature id.</value>
  84. public string featureId { get; set; }
  85. /// <summary>
  86. /// Gets or sets the registration info for this package (if premium).
  87. /// </summary>
  88. /// <value>The registration info.</value>
  89. public string regInfo { get; set; }
  90. /// <summary>
  91. /// Gets or sets the price for this package (if premium).
  92. /// </summary>
  93. /// <value>The price.</value>
  94. public float price { get; set; }
  95. /// <summary>
  96. /// Gets or sets the target system for this plug-in (Server, MBTheater, MBClassic).
  97. /// </summary>
  98. /// <value>The target system.</value>
  99. public PackageTargetSystem targetSystem { get; set; }
  100. /// <summary>
  101. /// The guid of the assembly associated with this package (if a plug-in).
  102. /// This is used to identify the proper item for automatic updates.
  103. /// </summary>
  104. /// <value>The name.</value>
  105. public string guid { get; set; }
  106. /// <summary>
  107. /// Gets or sets the total number of ratings for this package.
  108. /// </summary>
  109. /// <value>The total ratings.</value>
  110. public int? totalRatings { get; set; }
  111. /// <summary>
  112. /// Gets or sets the average rating for this package .
  113. /// </summary>
  114. /// <value>The rating.</value>
  115. public float avgRating { get; set; }
  116. /// <summary>
  117. /// Gets or sets whether or not this package is registered.
  118. /// </summary>
  119. /// <value>True if registered.</value>
  120. public bool isRegistered { get; set; }
  121. /// <summary>
  122. /// Gets or sets the expiration date for this package.
  123. /// </summary>
  124. /// <value>Expiration Date.</value>
  125. public DateTime expDate { get; set; }
  126. /// <summary>
  127. /// Gets or sets the versions.
  128. /// </summary>
  129. /// <value>The versions.</value>
  130. public IReadOnlyList<PackageVersionInfo> versions { get; set; }
  131. /// <summary>
  132. /// Gets or sets a value indicating whether [enable in application store].
  133. /// </summary>
  134. /// <value><c>true</c> if [enable in application store]; otherwise, <c>false</c>.</value>
  135. public bool enableInAppStore { get; set; }
  136. /// <summary>
  137. /// Gets or sets the installs.
  138. /// </summary>
  139. /// <value>The installs.</value>
  140. public int installs { get; set; }
  141. /// <summary>
  142. /// Initializes a new instance of the <see cref="PackageInfo"/> class.
  143. /// </summary>
  144. public PackageInfo()
  145. {
  146. versions = Array.Empty<PackageVersionInfo>();
  147. }
  148. }
  149. }