You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
766B

  1. using System;
  2. using System.Collections.Generic;
  3. using Newtonsoft.Json;
  4. namespace NScript.Gitea
  5. {
  6. [JsonObject]
  7. public struct Release
  8. {
  9. [JsonProperty("id")] public int Id;
  10. [JsonProperty("tag_name")] public string TagName;
  11. [JsonProperty("name")] public string Name;
  12. [JsonProperty("body")] public string Body;
  13. [JsonProperty("url")] public string Url;
  14. [JsonProperty("draft")] public bool Draft;
  15. [JsonProperty("prerelease")] public bool PreRelease;
  16. [JsonProperty("created_at")] public DateTime CreatedAt;
  17. [JsonProperty("published_at")] public DateTime PublishedAt;
  18. [JsonProperty("author")] public Author Author;
  19. [JsonProperty("assets")] public List<Asset> Assets;
  20. }
  21. }