First actual commit

added sources to repository
This commit is contained in:
Gardient
2015-08-28 21:49:50 +03:00
parent be56d43707
commit 9583c1afb2
58 changed files with 5466 additions and 0 deletions

32
RedditSharp/WikiPage.cs Normal file
View File

@@ -0,0 +1,32 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using RedditSharp.Things;
namespace RedditSharp
{
public class WikiPage
{
[JsonProperty("may_revise")]
public string MayRevise { get; set; }
[JsonProperty("revision_date")]
[JsonConverter(typeof(UnixTimestampConverter))]
public DateTime? RevisionDate { get; set; }
[JsonProperty("content_html")]
public string HtmlContent { get; set; }
[JsonProperty("content_md")]
public string MarkdownContent { get; set; }
[JsonIgnore]
public RedditUser RevisionBy { get; set; }
protected internal WikiPage(Reddit reddit, JToken json, IWebAgent webAgent)
{
RevisionBy = new RedditUser().Init(reddit, json["revision_by"], webAgent);
JsonConvert.PopulateObject(json.ToString(), this, reddit.JsonSerializerSettings);
}
}
}