Skip to content

Commit 2c1ad19

Browse files
committed
add IsRemoved and IsApproved to VotableThing
1 parent d968ca9 commit 2c1ad19

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

RedditSharp/Things/VotableThing.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,26 @@ protected virtual void RemoveImpl(bool spam)
153153
[JsonProperty("archived")]
154154
public bool IsArchived { get; set; }
155155

156+
/// <summary>
157+
/// Returns true if this item has been approved.
158+
/// Returns false if the item has not been approved. A value of false does not indicate
159+
/// an item has been removed.
160+
///
161+
/// <para>Returns null if the logged in user is not a moderator in the items subreddit.</para>
162+
/// </summary>
163+
[JsonProperty("approved")]
164+
public bool? IsApproved { get; set; }
165+
166+
/// <summary>
167+
/// Returns true if this item has been removed.
168+
/// Returns false if the item has not been removed. A value of false does not indicate
169+
/// an item has been approved.
170+
///
171+
/// <para>Returns null if the logged in user is not a moderator in the items subreddit.</para>
172+
/// </summary>
173+
[JsonProperty("removed")]
174+
public bool? IsRemoved { get; set; }
175+
156176
/// <summary>
157177
/// Number of upvotes on this item.
158178
/// </summary>

0 commit comments

Comments
 (0)