ReleaseInfo.cs 671 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Text.Json.Serialization;
  5. namespace PixiEditor.UpdateModule
  6. {
  7. public class ReleaseInfo
  8. {
  9. [JsonPropertyName("tag_name")]
  10. public string TagName { get; set; }
  11. [JsonPropertyName("draft")]
  12. public bool IsDraft { get; set; }
  13. [JsonPropertyName("prerelease")]
  14. public bool IsPrerelease { get; set; }
  15. public bool WasDataFetchSuccessfull { get; set; } = true;
  16. public ReleaseInfo() { }
  17. public ReleaseInfo(bool dataFetchSuccessfull)
  18. {
  19. WasDataFetchSuccessfull = dataFetchSuccessfull;
  20. }
  21. }
  22. }