public Tag(JToken json, ForrstClient client) : base(client) { this.ID = json.Value<int>("id"); this.Name = json.Value<string>("name"); this.Uri = new Uri(ForrstClient.BaseUri, json.Value<string>("posts_url")); }
static void Main(string[] args) { var forrst = new ForrstClient(); Console.WriteLine("User #1's first post:"); Console.WriteLine(new User(1, forrst).Posts.First().Content); Console.WriteLine(); Console.WriteLine("Requests done:"); foreach (var request in forrst.RequestLog) Console.WriteLine(request.ToString()); Console.ReadLine(); }
public User(JToken json, ForrstClient client) : base(client) { this.FromJson(json); }
public User(string username, ForrstClient client) : base(client) { this.Username = username; }
public User(int id, ForrstClient client) : base(client) { this.ID = id; }
public Post(int id, ForrstClient client) : base(client) { this.ID = id; }
public ForrstObject(ForrstClient client) { this.Client = client; }