Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
0
 public Listing <Post> GetPostsByUser(string username, Sort sorting, int limit, FromTime fromTime)
 {
     return(RedditUser.GetPosts(this, WebAgent, username, sorting, limit, fromTime));
 }
Exemplo n.º 6
0
 public Listing <Post> GetPostsByUser(string username, Sort sorting)
 {
     return(RedditUser.GetPosts(this, WebAgent, username, sorting));
 }
Exemplo n.º 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);
 }