Skip to content

Commit c5ed093

Browse files
Add Approve for Comment
1 parent 88d83cf commit c5ed093

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

RedditSharp/Things/Comment.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class Comment : VotableThing
1717
private const string EditUserTextUrl = "/api/editusertext";
1818
private const string RemoveUrl = "/api/remove";
1919
private const string DelUrl = "/api/del";
20+
private const string ApproveUrl = "/api/approve";
2021
private const string SetAsReadUrl = "/api/read_message";
2122

2223
[JsonIgnore]
@@ -228,6 +229,11 @@ private string SimpleAction(string endpoint)
228229
return data;
229230
}
230231

232+
public void Approve()
233+
{
234+
var data = SimpleAction(ApproveUrl);
235+
}
236+
231237
public void Del()
232238
{
233239
var data = SimpleAction(DelUrl);

0 commit comments

Comments
 (0)