예제 #1
0
        private async void button39_Click(object sender, EventArgs e)
        {
            if (textBox35.Text.Contains(","))
            {
                var streams = await TwitchApi.GetTwitchStreams(textBox35.Text.Split(',').ToList());

                foreach (var stream in streams)
                {
                    MessageBox.Show($"{stream.Channel.Name} currently has {stream.Viewers.ToString()} viewers!");
                }
            }
            else
            {
                MessageBox.Show("Seperate streams with a comma.");
            }
        }