forked from hippiehunter/SnooSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLink.cs
More file actions
84 lines (80 loc) · 2.76 KB
/
Copy pathLink.cs
File metadata and controls
84 lines (80 loc) · 2.76 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
using SnooSharp.Converters;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace SnooSharp
{
[DataContract]
public class Link : ThingData, ICreated, IVotable
{
[JsonConverter(typeof(UnixTimeConverter))]
[JsonProperty("created")]
public DateTime Created { get; set; }
[JsonConverter(typeof(UnixUTCTimeConverter))]
[JsonProperty("created_utc")]
public DateTime CreatedUTC { get; set; }
[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("clicked")]
public bool Clicked { get; set; }
[JsonProperty("domain")]
public string Domain { get; set; }
[JsonProperty("hidden")]
public bool Hidden { get; set; }
[JsonProperty("is_self")]
public bool IsSelf { get; set; }
[JsonProperty("media")]
public object Media { get; set; }
[JsonProperty("media_embed")]
public MediaEmbed MediaEmbed { get; set; }
[JsonProperty("num_comments")]
public int CommentCount { get; set; }
[JsonProperty("over_18")]
public bool Over18 { get; set; }
[JsonProperty("permalink")]
public string Permalink { get; set; }
[JsonProperty("saved")]
public bool Saved { get; set; }
[JsonProperty("score")]
public int Score { get; set; }
[JsonProperty("selftext")]
public string Selftext { get; set; }
[JsonProperty("selftext_html")]
public string SelftextHtml { get; set; }
[JsonProperty("subreddit")]
public string Subreddit { get; set; }
[JsonProperty("subreddit_id")]
public string SubredditId { get; set; }
[JsonProperty("thumbnail")]
public string Thumbnail { get; set; }
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("url")]
public string Url { get; set; }
[JsonProperty("ups")]
public int Ups { get; set; }
[JsonProperty("downs")]
public int Downs { get; set; }
[JsonProperty("likes")]
public bool? Likes { get; set; }
[JsonProperty("visited")]
public bool? Visited { get; set; }
}
public class MediaEmbed
{
[JsonProperty("content")]
public string Content { get; set; }
[JsonProperty("width")]
public int Width { get; set; }
[JsonProperty("height")]
public int Height { get; set; }
}
}