PackageInfo.cs 5.5 KB

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