Skip to content

Commit 5e15416

Browse files
committed
missing property hidden for posts
Adding a bool for the hidden state. # Conflicts: # RedditSharp/Things/Post.cs
1 parent 5c4816b commit 5e15416

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

RedditSharp/Things/Post.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ public Post(IWebAgent agent, JToken json) : base(agent, json)
3434
}
3535
#pragma warning restore 1591
3636

37+
/// <summary>
38+
/// Returns true if post is marked as spoiler
39+
/// </summary>
40+
[JsonProperty("spoiler")]
41+
public bool IsSpoiler { get; set; }
42+
43+
/// <summary>
44+
/// Returns true if this post is hidden
45+
/// </summary>
46+
[JsonProperty("hidden")]
47+
public bool IsHidden { get; set; }
48+
3749
/// <summary>
3850
/// Domain of this post.
3951
/// </summary>

0 commit comments

Comments
 (0)