mekasu0124

Untitled

Jan 26th, 2024
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System.Text.Json.Serialization;
  2.  
  3. namespace Installer.Models;
  4.  
  5. public class ReleaseData
  6. {
  7.     [JsonPropertyName("browser_download_url")]
  8.     public string DownloadUrl { get; set; }
  9.  
  10.     [JsonPropertyName("size")]
  11.     public ulong DownloadSize { get; set; }
  12.  
  13.     [JsonPropertyName("name")]
  14.     public string DownloadName { get; set; }
  15. }
  16.  
  17. public class ReleaseResponseDTO
  18. {
  19.     [JsonPropertyName("assets")]
  20.     public ReleaseData[] Assets { get; set; }
  21. }
  22.  
  23. public enum SupportedOperatingSystem
  24. {
  25.     Windows,
  26.     Linux,
  27.     Mac
  28. }
Advertisement
Add Comment
Please, Sign In to add comment