Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Reddit.NET/Things/Post/Post.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public class Post
[JsonProperty("title")]
public string Title { get; set; }

// TODO - Only had an empty example so not sure if the structure is right. --Kris
[JsonProperty("link_flair_richtext")]
public object PublicFlairRichtext { get; set; }
// Added Object 07/01/21 Jonathon C.
[JsonProperty("link_flair_richtext", NullValueHandling = NullValueHandling.Ignore)]
public PostLinkFlair PublicFlairRichtext { get; set; }

[JsonProperty("subreddit_name_prefixed")]
public string SubredditNamePrefixed { get; set; }
Expand Down
19 changes: 19 additions & 0 deletions src/Reddit.NET/Things/Post/PostLinkFlair.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Newtonsoft.Json;
using System;

namespace Reddit.Things
{
[Serializable]
public class PostLinkFlair
{
// Assumed Titles based off content found -- Usually seems to be "text"

[JsonProperty("e")]
public string Type { get; set; }

[JsonProperty("t")]
public string Flair { get; set; }


}
}