示例#1
0
 #pragma warning disable 1591
 protected internal WikiPage(IWebAgent agent, JToken json)
 {
     if (json["revision_by"].HasValues)
     {
         RevisionBy = new RedditUser(agent, json["revision_by"]);
     }
     Helpers.PopulateObject(json, this);
 }
示例#2
0
 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);
 }
示例#3
0
 protected internal WikiPage(Reddit reddit, JToken json, IWebAgent webAgent)
 {
     RevisionBy = new RedditUser(reddit, json["revision_by"], webAgent);
     JsonConvert.PopulateObject(json.ToString(), this, reddit.JsonSerializerSettings);
 }
 protected internal WikiPageRevision(Reddit reddit, JToken json, IWebAgent webAgent)
     : base(null)
 {
     Author = new RedditUser(reddit, json["author"], webAgent);
     JsonConvert.PopulateObject(json.ToString(), this, reddit.JsonSerializerSettings);
 }
示例#5
0
 public Listing <Post> GetPostsByUser(string username, Sort sorting, int limit, FromTime fromTime)
 {
     return(RedditUser.GetPosts(this, WebAgent, username, sorting, limit, fromTime));
 }
示例#6
0
 public Listing <Post> GetPostsByUser(string username, Sort sorting)
 {
     return(RedditUser.GetPosts(this, WebAgent, username, sorting));
 }
示例#7
0
 protected internal WikiPageRevision(Reddit reddit, JToken json, IWebAgent webAgent)
     : base(null)
 {
     Author = new RedditUser(reddit, json["author"], webAgent);
     JsonConvert.PopulateObject(json.ToString(), this, reddit.JsonSerializerSettings);
 }