File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public class Comment : VotableThing
19
19
private const string DelUrl = "/api/del" ;
20
20
private const string ApproveUrl = "/api/approve" ;
21
21
private const string SetAsReadUrl = "/api/read_message" ;
22
+ private const string IgnoreReportsUrl = "/api/ignore_reports" ;
23
+ private const string UnIgnoreReportsUrl = "/api/unignore_reports" ;
22
24
23
25
[ JsonIgnore ]
24
26
private Reddit Reddit { get ; set ; }
@@ -239,6 +241,16 @@ public void Del()
239
241
var data = SimpleAction ( DelUrl ) ;
240
242
}
241
243
244
+ public void IgnoreReports ( )
245
+ {
246
+ var data = SimpleAction ( IgnoreReportsUrl ) ;
247
+ }
248
+
249
+ public void UnIgnoreReports ( )
250
+ {
251
+ var data = SimpleAction ( UnIgnoreReportsUrl ) ;
252
+ }
253
+
242
254
public void Remove ( )
243
255
{
244
256
RemoveImpl ( false ) ;
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ public class Post : VotableThing
25
25
private const string UnmarkNSFWUrl = "/api/unmarknsfw" ;
26
26
private const string ContestModeUrl = "/api/set_contest_mode" ;
27
27
private const string StickyModeUrl = "/api/set_subreddit_sticky" ;
28
+ private const string IgnoreReportsUrl = "/api/ignore_reports" ;
29
+ private const string UnIgnoreReportsUrl = "/api/unignore_reports" ;
28
30
29
31
[ JsonIgnore ]
30
32
private Reddit Reddit { get ; set ; }
@@ -267,6 +269,16 @@ public void Unhide()
267
269
var data = SimpleAction ( UnhideUrl ) ;
268
270
}
269
271
272
+ public void IgnoreReports ( )
273
+ {
274
+ var data = SimpleAction ( IgnoreReportsUrl ) ;
275
+ }
276
+
277
+ public void UnIgnoreReports ( )
278
+ {
279
+ var data = SimpleAction ( UnIgnoreReportsUrl ) ;
280
+ }
281
+
270
282
public void MarkNSFW ( )
271
283
{
272
284
var data = SimpleAction ( MarkNSFWUrl ) ;
You can’t perform that action at this time.
0 commit comments