Exemplo n.º 1
0
 private void TwitchForm_OnShowTwitchTV(TwitchTV twitchTV)
 {
     lblViewers.Text = string.Format("Viewers: {0:000}", twitchTV.stream.viewers);
     lblFollowers.Text = string.Format("Followers: {0:000}", twitchTV.stream.channel.followers);
     lblViews.Text = string.Format("Views: {0:000}", twitchTV.stream.channel.views);
     userName.Text = string.Format("User: {0}", twitchTV.stream.channel.name);
 }
Exemplo n.º 2
0
 private void TwitchForm_OnShowTwitchTV(TwitchTV twitchTV)
 {
     lblViewers.Text   = string.Format("Viewers: {0:000}", twitchTV.stream.viewers);
     lblFollowers.Text = string.Format("Followers: {0:000}", twitchTV.stream.channel.followers);
     lblViews.Text     = string.Format("Views: {0:000}", twitchTV.stream.channel.views);
     userName.Text     = string.Format("User: {0}", twitchTV.stream.channel.name);
 }
Exemplo n.º 3
0
        private void LoadKraken()
        {
            m_Running = true;
            while (m_Running)
            {
                var    url  = "https://api.twitch.tv/kraken/streams/moonducktv";
                string json = m_WebClient.DownloadString(url);

                TwitchTV twitchTV = JsonConvert.DeserializeObject <TwitchTV>(json);

                this.BeginInvoke(OnShowTwitchTV, twitchTV);

                Thread.Sleep(3000);
            }
        }