File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -201,18 +201,20 @@ private void PageBack()
201
201
if ( LimitPerRequest != - 1 )
202
202
{
203
203
int limit = LimitPerRequest ;
204
-
205
- if ( limit > MaximumLimit )
206
- {
207
- // If the limit is more than the maximum number of listings, adjust
208
- limit = MaximumLimit ;
209
- }
210
- else if ( Count + limit > MaximumLimit )
204
+ if ( MaximumLimit != - 1 )
211
205
{
212
- // If a smaller subset of listings are needed, adjust the limit
213
- limit = MaximumLimit - Count ;
206
+ if ( limit > MaximumLimit )
207
+ {
208
+ // If the limit is more than the maximum number of listings, adjust
209
+ limit = MaximumLimit ;
210
+ }
211
+ else if ( Count + limit > MaximumLimit )
212
+ {
213
+ // If a smaller subset of listings are needed, adjust the limit
214
+ limit = MaximumLimit - Count ;
215
+ }
214
216
}
215
-
217
+
216
218
if ( limit > 0 )
217
219
{
218
220
// Add the limit, the maximum number of items to be returned per page
Original file line number Diff line number Diff line change @@ -138,6 +138,9 @@ public Comment[] Comments
138
138
[ JsonProperty ( "subreddit" ) ]
139
139
public string SubredditName { get ; set ; }
140
140
141
+ [ JsonProperty ( "archived" ) ]
142
+ public bool IsArchived { get ; set ; }
143
+
141
144
[ JsonProperty ( "stickied" ) ]
142
145
public bool IsStickied { get ; set ; }
143
146
You can’t perform that action at this time.
0 commit comments