PackageInfo.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. using System;
  2. using ProtoBuf;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Model.Updates
  5. {
  6. /// <summary>
  7. /// Class PackageInfo
  8. /// </summary>
  9. [ProtoContract]
  10. public class PackageInfo
  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 short description.
  20. /// </summary>
  21. /// <value>The short description.</value>
  22. [ProtoMember(2)]
  23. public string shortDescription { get; set; }
  24. /// <summary>
  25. /// Gets or sets the overview.
  26. /// </summary>
  27. /// <value>The overview.</value>
  28. [ProtoMember(3)]
  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. [ProtoMember(4)]
  35. public bool isPremium { get; set; }
  36. /// <summary>
  37. /// Gets or sets the rich desc URL.
  38. /// </summary>
  39. /// <value>The rich desc URL.</value>
  40. [ProtoMember(5)]
  41. public string richDescUrl { get; set; }
  42. /// <summary>
  43. /// Gets or sets the thumb image.
  44. /// </summary>
  45. /// <value>The thumb image.</value>
  46. [ProtoMember(6)]
  47. public string thumbImage { get; set; }
  48. /// <summary>
  49. /// Gets or sets the preview image.
  50. /// </summary>
  51. /// <value>The preview image.</value>
  52. [ProtoMember(7)]
  53. public string previewImage { get; set; }
  54. /// <summary>
  55. /// Gets or sets the type.
  56. /// </summary>
  57. /// <value>The type.</value>
  58. [ProtoMember(8)]
  59. public PackageType type { get; set; }
  60. /// <summary>
  61. /// Gets or sets the target filename.
  62. /// </summary>
  63. /// <value>The target filename.</value>
  64. [ProtoMember(9)]
  65. public string targetFilename { get; set; }
  66. /// <summary>
  67. /// Gets or sets the owner.
  68. /// </summary>
  69. /// <value>The owner.</value>
  70. [ProtoMember(10)]
  71. public string owner { get; set; }
  72. /// <summary>
  73. /// Gets or sets the category.
  74. /// </summary>
  75. /// <value>The category.</value>
  76. [ProtoMember(11)]
  77. public string category { get; set; }
  78. /// <summary>
  79. /// Gets or sets the catalog tile color.
  80. /// </summary>
  81. /// <value>The owner.</value>
  82. [ProtoMember(12)]
  83. public string tileColor { get; set; }
  84. /// <summary>
  85. /// Gets or sets the feature id of this package (if premium).
  86. /// </summary>
  87. /// <value>The feature id.</value>
  88. [ProtoMember(13)]
  89. public string featureId { get; set; }
  90. /// <summary>
  91. /// Gets or sets the registration info for this package (if premium).
  92. /// </summary>
  93. /// <value>The registration info.</value>
  94. [ProtoMember(14)]
  95. public string regInfo { get; set; }
  96. /// <summary>
  97. /// Gets or sets the price for this package (if premium).
  98. /// </summary>
  99. /// <value>The price.</value>
  100. [ProtoMember(15)]
  101. public float price { get; set; }
  102. /// <summary>
  103. /// Gets or sets whether or not this package is registered.
  104. /// </summary>
  105. /// <value>True if registered.</value>
  106. [ProtoMember(16)]
  107. public bool isRegistered { get; set; }
  108. /// <summary>
  109. /// Gets or sets the expiration date for this package.
  110. /// </summary>
  111. /// <value>Expiration Date.</value>
  112. [ProtoMember(17)]
  113. public DateTime expDate { get; set; }
  114. /// <summary>
  115. /// Gets or sets the versions.
  116. /// </summary>
  117. /// <value>The versions.</value>
  118. [ProtoMember(18)]
  119. public List<PackageVersionInfo> versions { get; set; }
  120. }
  121. }