forked from hippiehunter/SnooSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComment.cs
More file actions
50 lines (47 loc) · 1.62 KB
/
Comment.cs
File metadata and controls
50 lines (47 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using SnooSharp.Converters;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SnooSharp
{
public class Comment : ThingData, IVotable, ICreated
{
[JsonProperty("author")]
public string Author { get; set; }
[JsonProperty("author_flair_css_class")]
public string AuthorFlairCssClass { get; set; }
[JsonProperty("author_flair_text")]
public string AuthorFlairText { get; set; }
[JsonProperty("body")]
public string Body { get; set; }
[JsonProperty("body_html")]
public string BodyHtml { get; set; }
[JsonProperty("link_id")]
public string LinkId { get; set; }
[JsonProperty("parent_id")]
public string ParentId { get; set; }
[JsonProperty("subreddit")]
public string Subreddit { get; set; }
[JsonProperty("subreddit_id")]
public string SubredditId { get; set; }
[JsonProperty("replies")]
public Listing Replies { get; set; }
[JsonConverter(typeof(UnixTimeConverter))]
[JsonProperty("created")]
public DateTime Created { get; set; }
[JsonConverter(typeof(UnixUTCTimeConverter))]
[JsonProperty("created_utc")]
public DateTime CreatedUTC { get; set; }
[JsonProperty("ups")]
public int Ups { get; set; }
[JsonProperty("downs")]
public int Downs { get; set; }
[JsonProperty("likes")]
public bool? Likes { get; set; }
[JsonProperty("gilded")]
public int Gilded { get; set; }
}
}