/
Comment.cs
68 lines (63 loc) · 2.28 KB
/
Comment.cs
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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("link_url")]
public string LinkUrl { get; set; }
[JsonProperty("link_title")]
public string LinkTitle { 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; }
[JsonProperty("context", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string Context { get; set; }
[JsonProperty("edited")]
public bool? Edited { get; set; }
[JsonProperty("approved_by")]
public string ApprovedBy { get; set; }
[JsonProperty("user_reports")]
public List<string[]> UserReports { get; set; }
[JsonProperty("mod_reports")]
public List<string[]> ModReports { get; set; }
[JsonProperty("num_reports")]
public int? NumberOfReports { get; set; }
}
}