Advertisement
Guest User

Untitled

a guest
Jan 6th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. using Newtonsoft.Json.Linq;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace JuicyReddit
  9. {
  10. public class Page
  11. {
  12. public class MediaEmbed
  13. {
  14. public string content { get; set; }
  15. public int? width { get; set; }
  16. public bool? scrolling { get; set; }
  17. public int? height { get; set; }
  18. }
  19.  
  20. public class Oembed
  21. {
  22. public string provider_url { get; set; }
  23. public string description { get; set; }
  24. public string title { get; set; }
  25. public string url { get; set; }
  26. public string type { get; set; }
  27. public string author_name { get; set; }
  28. public int height { get; set; }
  29. public int width { get; set; }
  30. public string html { get; set; }
  31. public int thumbnail_width { get; set; }
  32. public string version { get; set; }
  33. public string provider_name { get; set; }
  34. public string thumbnail_url { get; set; }
  35. public int thumbnail_height { get; set; }
  36. public string author_url { get; set; }
  37. }
  38.  
  39. public class SecureMedia
  40. {
  41. public string type { get; set; }
  42. public Oembed oembed { get; set; }
  43. }
  44.  
  45. public class SecureMediaEmbed
  46. {
  47. public string content { get; set; }
  48. public int? width { get; set; }
  49. public bool? scrolling { get; set; }
  50. public int? height { get; set; }
  51. }
  52.  
  53. public class Oembed2
  54. {
  55. public string provider_url { get; set; }
  56. public string description { get; set; }
  57. public string title { get; set; }
  58. public string type { get; set; }
  59. public int thumbnail_width { get; set; }
  60. public int height { get; set; }
  61. public int width { get; set; }
  62. public string html { get; set; }
  63. public string version { get; set; }
  64. public string provider_name { get; set; }
  65. public string thumbnail_url { get; set; }
  66. public int thumbnail_height { get; set; }
  67. public string url { get; set; }
  68. public string author_name { get; set; }
  69. public string author_url { get; set; }
  70. }
  71.  
  72. public class Media
  73. {
  74. public string type { get; set; }
  75. public Oembed2 oembed { get; set; }
  76. }
  77.  
  78. public class Data2
  79. {
  80. public string domain { get; set; }
  81. public object banned_by { get; set; }
  82. public MediaEmbed media_embed { get; set; }
  83. public string subreddit { get; set; }
  84. public object selftext_html { get; set; }
  85. public string selftext { get; set; }
  86. public object likes { get; set; }
  87. public SecureMedia secure_media { get; set; }
  88. public string link_flair_text { get; set; }
  89. public string id { get; set; }
  90. public SecureMediaEmbed secure_media_embed { get; set; }
  91. public bool clicked { get; set; }
  92. public bool stickied { get; set; }
  93. public string author { get; set; }
  94. public Media media { get; set; }
  95. public int score { get; set; }
  96. public object approved_by { get; set; }
  97. public bool over_18 { get; set; }
  98. public bool hidden { get; set; }
  99. public string thumbnail { get; set; }
  100. public string subreddit_id { get; set; }
  101. public bool edited { get; set; }
  102. public string link_flair_css_class { get; set; }
  103. public string author_flair_css_class { get; set; }
  104. public int downs { get; set; }
  105. public bool saved { get; set; }
  106. public bool is_self { get; set; }
  107. public string permalink { get; set; }
  108. public string name { get; set; }
  109. public double created { get; set; }
  110. public string url { get; set; }
  111. public string author_flair_text { get; set; }
  112. public string title { get; set; }
  113. public double created_utc { get; set; }
  114. public int ups { get; set; }
  115. public int num_comments { get; set; }
  116. public bool visited { get; set; }
  117. public object num_reports { get; set; }
  118. public object distinguished { get; set; }
  119. }
  120.  
  121. public class Child
  122. {
  123. public string kind { get; set; }
  124. public Data2 data { get; set; }
  125. }
  126.  
  127. public class Data
  128. {
  129. public string modhash { get; set; }
  130. public List<Child> children { get; set; }
  131. public string after { get; set; }
  132. public object before { get; set; }
  133. }
  134.  
  135. public class RootObject
  136. {
  137. public string kind { get; set; }
  138. public Data data { get; set; }
  139. }
  140. }
  141. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement