@@ -16,6 +16,8 @@ public class Subreddit : Thing
16
16
private const string SubredditHotUrl = "/r/{0}/hot.json" ;
17
17
private const string SubredditRisingUrl = "/r/{0}/rising.json" ;
18
18
private const string SubredditTopUrl = "/r/{0}/top.json?t={1}" ;
19
+ private const string SubredditControversialUrl = "/r/{0}/controversial.json" ;
20
+ private const string SubredditGildedUrl = "/r/{0}/gilded.json" ;
19
21
private const string SubscribeUrl = "/api/subscribe" ;
20
22
private const string GetSettingsUrl = "/r/{0}/about/edit.json" ;
21
23
private const string GetReducedSettingsUrl = "/r/{0}/about.json" ;
@@ -186,6 +188,31 @@ public Listing<Post> Rising
186
188
return new Listing < Post > ( Reddit , string . Format ( SubredditRisingUrl , Name ) , WebAgent ) ;
187
189
}
188
190
}
191
+ /// <summary>
192
+ /// List of Controversial posts
193
+ /// </summary>
194
+ public Listing < Post > Controversial
195
+ {
196
+ get
197
+ {
198
+ if ( Name == "/" )
199
+ return new Listing < Post > ( Reddit , "/.json" , WebAgent ) ;
200
+ return new Listing < Post > ( Reddit , string . Format ( SubredditControversialUrl , Name ) , WebAgent ) ;
201
+ }
202
+ }
203
+ /// <summary>
204
+ /// List of gilded things
205
+ /// </summary>
206
+ public Listing < VotableThing > Gilded
207
+ {
208
+ get
209
+ {
210
+ if ( Name == "/" )
211
+ return new Listing < VotableThing > ( Reddit , "/.json" , WebAgent ) ;
212
+ return new Listing < VotableThing > ( Reddit , string . Format ( SubredditGildedUrl , Name ) , WebAgent ) ;
213
+ }
214
+ }
215
+
189
216
/// <summary>
190
217
/// List of items in the mod queue
191
218
/// </summary>
0 commit comments