2
0

VersionInfo.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #nullable disable
  2. using System;
  3. namespace MediaBrowser.Model.Updates
  4. {
  5. /// <summary>
  6. /// Class PackageVersionInfo.
  7. /// </summary>
  8. public class VersionInfo
  9. {
  10. private Version _version;
  11. /// <summary>
  12. /// Gets or sets the version.
  13. /// </summary>
  14. /// <value>The version.</value>
  15. public string version
  16. {
  17. get
  18. {
  19. return _version == null ? string.Empty : _version.ToString();
  20. }
  21. set
  22. {
  23. _version = Version.Parse(value);
  24. }
  25. }
  26. /// <summary>
  27. /// Gets the version as a <see cref="Version"/>.
  28. /// </summary>
  29. public Version VersionNumber => _version;
  30. /// <summary>
  31. /// Gets or sets the changelog for this version.
  32. /// </summary>
  33. /// <value>The changelog.</value>
  34. public string changelog { get; set; }
  35. /// <summary>
  36. /// Gets or sets the ABI that this version was built against.
  37. /// </summary>
  38. /// <value>The target ABI version.</value>
  39. public string targetAbi { get; set; }
  40. /// <summary>
  41. /// Gets or sets the source URL.
  42. /// </summary>
  43. /// <value>The source URL.</value>
  44. public string sourceUrl { get; set; }
  45. /// <summary>
  46. /// Gets or sets a checksum for the binary.
  47. /// </summary>
  48. /// <value>The checksum.</value>
  49. public string checksum { get; set; }
  50. /// <summary>
  51. /// Gets or sets a timestamp of when the binary was built.
  52. /// </summary>
  53. /// <value>The timestamp.</value>
  54. public string timestamp { get; set; }
  55. /// <summary>
  56. /// Gets or sets the repository name.
  57. /// </summary>
  58. public string repositoryName { get; set; }
  59. /// <summary>
  60. /// Gets or sets the repository url.
  61. /// </summary>
  62. public string repositoryUrl { get; set; }
  63. }
  64. }