ReleaseInfo.cs 752 B

1234567891011121314151617181920212223242526
  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. [JsonPropertyName("assets")]
  16. public Asset[] Assets { get; set; }
  17. public bool WasDataFetchSuccessfull { get; set; } = true;
  18. public ReleaseInfo() { }
  19. public ReleaseInfo(bool dataFetchSuccessfull)
  20. {
  21. WasDataFetchSuccessfull = dataFetchSuccessfull;
  22. }
  23. }
  24. }