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); } }
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); }