Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Star Wars");
            SetUpClient();
            // var luke = response.Content.ReadAsStringAsync().Result;
            var    luke        = GetPeople("3");
            Planet lukesPlanet = luke.HomeworldDetail(client);

            var allPeopleResponse      = client.GetAsync("people").Result;
            PeopleCollection allPeople = allPeopleResponse.Content.ReadAsAsync <PeopleCollection>().Result;

            allPeople.GetPrevious(client); // instance
            allPeople.GetNext(client);     // instance
        }