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