Esempio n. 1
1
 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"));
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public User(JToken json, ForrstClient client)
     : base(client)
 {
     this.FromJson(json);
 }
Esempio n. 4
0
 public User(string username, ForrstClient client)
     : base(client)
 {
     this.Username = username;
 }
Esempio n. 5
0
 public User(int id, ForrstClient client)
     : base(client)
 {
     this.ID = id;
 }
Esempio n. 6
0
 public Post(int id, ForrstClient client)
     : base(client)
 {
     this.ID = id;
 }
Esempio n. 7
0
 public ForrstObject(ForrstClient client)
 {
     this.Client = client;
 }