Skip to content

Commit 14419ea

Browse files
authored
Merge pull request #55 from pimanac/master
Add missing ModAction properties.
2 parents 09168dd + 3f89791 commit 14419ea

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

RedditSharp/Things/ModAction.cs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,24 @@ public class ModAction : Thing
2424
[JsonConverter(typeof(UnixTimestampConverter))]
2525
public DateTime? TimeStamp { get; set; }
2626

27+
/// <summary>
28+
/// Populated when <see cref="Action"/> is WikiBan, BanUser, or UnBanUser.
29+
/// </summary>
30+
[JsonProperty("description")]
31+
public string Description { get; set; }
32+
2733
/// <summary>
2834
/// Action details.
2935
/// </summary>
3036
[JsonProperty("details")]
3137
public string Details { get; set; }
3238

39+
/// <summary>
40+
/// Base 36 id of the moderator who performed the action.
41+
/// </summary>
42+
[JsonProperty("mod_id36")]
43+
public string ModeratorId { get; set; }
44+
3345
/// <summary>
3446
/// Name of moderator who performed the action.
3547
/// </summary>
@@ -54,6 +66,30 @@ public class ModAction : Thing
5466
[JsonProperty("target_permalink")]
5567
public string TargetThingPermalink { get; set; }
5668

69+
/// <summary>
70+
/// Base 36 id of the subreddit.
71+
/// </summary>
72+
[JsonProperty("sr_id36")]
73+
public string SubredditId { get; set; }
74+
75+
/// <summary>
76+
/// Subreddit name.
77+
/// </summary>
78+
[JsonProperty("subreddit")]
79+
public string SubredditName { get; set; }
80+
81+
/// <summary>
82+
/// Populated when target is a comment.
83+
/// </summary>
84+
[JsonProperty("target_body")]
85+
public string TargetBody { get; set; }
86+
87+
/// <summary>
88+
/// Populated when target is a post.
89+
/// </summary>
90+
[JsonProperty("target_title")]
91+
public string TargetTitle { get; set; }
92+
5793
/// <summary>
5894
/// Author of the item against which this moderation action was performed.
5995
/// </summary>

0 commit comments

Comments
 (0)