File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ public class Subreddit : Thing
14
14
private const string SubredditPostUrl = "/r/{0}.json" ;
15
15
private const string SubredditNewUrl = "/r/{0}/new.json?sort=new" ;
16
16
private const string SubredditHotUrl = "/r/{0}/hot.json" ;
17
+ private const string SubredditRisingUrl = "/r/{0}/rising.json" ;
17
18
private const string SubredditTopUrl = "/r/{0}/top.json?t={1}" ;
18
19
private const string SubscribeUrl = "/api/subscribe" ;
19
20
private const string GetSettingsUrl = "/r/{0}/about/edit.json" ;
@@ -154,8 +155,17 @@ public Listing<Post> Hot
154
155
return new Listing < Post > ( Reddit , "/.json" , WebAgent ) ;
155
156
return new Listing < Post > ( Reddit , string . Format ( SubredditHotUrl , Name ) , WebAgent ) ;
156
157
}
157
- }
158
-
158
+ }
159
+ public Listing < Post > Rising
160
+ {
161
+ get
162
+ {
163
+ if ( Name == "/" )
164
+ return new Listing < Post > ( Reddit , "/.json" , WebAgent ) ;
165
+ return new Listing < Post > ( Reddit , string . Format ( SubredditRisingUrl , Name ) , WebAgent ) ;
166
+ }
167
+ }
168
+
159
169
public Listing < VotableThing > ModQueue
160
170
{
161
171
get
You can’t perform that action at this time.
0 commit comments