示例#1
0
        private static void GetNames()
        {
            new JsonFeed(Constants.NameEndPoint, 0);
            dynamic result = JsonFeed.GetNames();

            names = Tuple.Create(result.name.ToString(), result.surname.ToString());
        }
示例#2
0
 private static void GetCategories()
 {
     new JsonFeed(Constants.JokeEndPoint, 0);
     results = JsonFeed.GetCategories();
 }
示例#3
0
 private static void GetRandomJokes(string category, int number)
 {
     new JsonFeed(Constants.JokeEndPoint, number);
     results = JsonFeed.GetRandomJokes(names?.Item1, names?.Item2, category);
 }