コード例 #1
0
        private async void ReloadChannel()
        {
            if (!m_loadingChannel)
            {
                m_loadingChannel        = true;
                loaderStream.Visibility = Visibility.Visible;
                RemoveStackElement(false);
                FollowedStreams followedStream = await TwitchClient.GetFollowedStreamsAsyncV5(100);

                TwitchList <Stream> followed = new TwitchList <Stream>();
                followed.List = followedStream.Streams.OfType <Stream>().ToList();
                RefreshStreamPanel(followed, false);
            }
        }
コード例 #2
0
        private async void updateLiveChannels(Object sender, EventArgs e)
        {
            TwitchAPI api = new TwitchAPI(Twitch.clientID, Twitch.authToken);

            liveChannels = await api.Streams.v5.GetFollowedStreamsAsync(streamType : "live", limit : 14);
        }