Skip to content

Commit 81dcb4c

Browse files
committed
add IsStickied
1 parent bc93577 commit 81dcb4c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

RedditSharp/Things/Comment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ private async Task ParseCommentsAsync(Reddit reddit, JToken data, IWebAgent webA
126126
public string LinkTitle { get; set; }
127127
[JsonProperty("num_reports")]
128128
public int? NumReports { get; set; }
129+
[JsonProperty("stickied")]
130+
public bool IsStickied { get; set; }
129131

130132
[JsonIgnore]
131133
public IList<Comment> Comments { get; private set; }

RedditSharp/Things/Post.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ public Comment[] Comments
138138
[JsonProperty("subreddit")]
139139
public string SubredditName { get; set; }
140140

141+
[JsonProperty("stickied")]
142+
public bool IsStickied { get; set; }
143+
141144
[JsonIgnore]
142145
public Subreddit Subreddit
143146
{

0 commit comments

Comments
 (0)