Advertisement
xN0tiCx

Broadcasting json

Jul 29th, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. namespace QuickType
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5.  
  6. using System.Globalization;
  7. using Newtonsoft.Json;
  8. using Newtonsoft.Json.Converters;
  9.  
  10. public partial class Broadcasting
  11. {
  12. [JsonProperty("stream")]
  13. public Stream Stream { get; set; }
  14. }
  15.  
  16. public partial class Stream
  17. {
  18. [JsonProperty("_id")]
  19. public long Id { get; set; }
  20.  
  21. [JsonProperty("game")]
  22. public string Game { get; set; }
  23.  
  24. [JsonProperty("viewers")]
  25. public long Viewers { get; set; }
  26.  
  27. [JsonProperty("video_height")]
  28. public long VideoHeight { get; set; }
  29.  
  30. [JsonProperty("average_fps")]
  31. public long AverageFps { get; set; }
  32.  
  33. [JsonProperty("delay")]
  34. public long Delay { get; set; }
  35.  
  36. [JsonProperty("created_at")]
  37. public DateTimeOffset CreatedAt { get; set; }
  38.  
  39. [JsonProperty("is_playlist")]
  40. public bool IsPlaylist { get; set; }
  41.  
  42. [JsonProperty("preview")]
  43. public Preview Preview { get; set; }
  44.  
  45. [JsonProperty("channel")]
  46. public Channel Channel { get; set; }
  47. }
  48.  
  49. public partial class Channel
  50. {
  51. [JsonProperty("mature")]
  52. public bool Mature { get; set; }
  53.  
  54. [JsonProperty("status")]
  55. public string Status { get; set; }
  56.  
  57. [JsonProperty("broadcaster_language")]
  58. public string BroadcasterLanguage { get; set; }
  59.  
  60. [JsonProperty("display_name")]
  61. public string DisplayName { get; set; }
  62.  
  63. [JsonProperty("game")]
  64. public string Game { get; set; }
  65.  
  66. [JsonProperty("language")]
  67. public string Language { get; set; }
  68.  
  69. [JsonProperty("_id")]
  70. public long Id { get; set; }
  71.  
  72. [JsonProperty("name")]
  73. public string Name { get; set; }
  74.  
  75. [JsonProperty("created_at")]
  76. public DateTimeOffset CreatedAt { get; set; }
  77.  
  78. [JsonProperty("updated_at")]
  79. public DateTimeOffset UpdatedAt { get; set; }
  80.  
  81. [JsonProperty("partner")]
  82. public bool Partner { get; set; }
  83.  
  84. [JsonProperty("logo")]
  85. public Uri Logo { get; set; }
  86.  
  87. [JsonProperty("video_banner")]
  88. public Uri VideoBanner { get; set; }
  89.  
  90. [JsonProperty("profile_banner")]
  91. public Uri ProfileBanner { get; set; }
  92.  
  93. [JsonProperty("profile_banner_background_color")]
  94. public object ProfileBannerBackgroundColor { get; set; }
  95.  
  96. [JsonProperty("url")]
  97. public Uri Url { get; set; }
  98.  
  99. [JsonProperty("views")]
  100. public long Views { get; set; }
  101.  
  102. [JsonProperty("followers")]
  103. public long Followers { get; set; }
  104. }
  105.  
  106. public partial class Preview
  107. {
  108. [JsonProperty("small")]
  109. public Uri Small { get; set; }
  110.  
  111. [JsonProperty("medium")]
  112. public Uri Medium { get; set; }
  113.  
  114. [JsonProperty("large")]
  115. public Uri Large { get; set; }
  116.  
  117. [JsonProperty("template")]
  118. public string Template { get; set; }
  119. }
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement