public static void ShowList <T>(Task <PlainList <T> > task) { PlainList <T> result = RunTest(task); foreach (T o in result.List) { Console.WriteLine(o); } }
public void Bug() { var u = RunTest(Api.LoginAsync(Settings.Login, Settings.Password)); Team t = RunTest(Team.GetById(Api, "j3x94gd5q3f79q1y9os9ddtuho")); PlainList <Channel> channels = RunTest(u.ChannelsForTeam(Api, t.id)); foreach (Channel c in channels.List) { Console.WriteLine($"{c.id}:{c.name}"); } }