private void Client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e) { log.Add(new MessageEntry() { Message = "ChannelStateChanged: " + e.Channel, Time = DateTime.Now }); }
/// <summary> /// Invokes the channel state changed. /// </summary> /// <param name="client">The client.</param> /// <param name="channel">The channel.</param> /// <param name="r9k">if set to <c>true</c> [R9K].</param> /// <param name="rituals">if set to <c>true</c> [rituals].</param> /// <param name="subOnly">if set to <c>true</c> [sub only].</param> /// <param name="slowMode">The slow mode.</param> /// <param name="emoteOnly">if set to <c>true</c> [emote only].</param> /// <param name="broadcasterLanguage">The broadcaster language.</param> /// <param name="followersOnly">The followers only.</param> /// <param name="mercury">if set to <c>true</c> [mercury].</param> /// <param name="roomId">The room identifier.</param> public static void InvokeChannelStateChanged(this TwitchClient client, string channel, bool r9k, bool rituals, bool subOnly, int slowMode, bool emoteOnly, string broadcasterLanguage, TimeSpan followersOnly, bool mercury, string roomId) { ChannelState state = new ChannelState(r9k, rituals, subOnly, slowMode, emoteOnly, broadcasterLanguage, channel, followersOnly, mercury, roomId); OnChannelStateChangedArgs model = new OnChannelStateChangedArgs() { Channel = channel, ChannelState = state }; client.RaiseEvent("OnChannelStateChanged", model); }
private void TwitchChannelStateChanged(object sender, OnChannelStateChangedArgs e) { /* Structure Example "ChannelState": { "BroadcasterLanguage": null, "Channel": "munglo", "EmoteOnly": false, "FollowersOnly": null, "Mercury": false, "R9K": false, "Rituals": false, "RoomId": "42172284", "SlowMode": 0, "SubOnly": false }, "Channel": "munglo" */ }
private void onChannelStateChanged(object sender, OnChannelStateChangedArgs e) { MessageBox.Show($"Channel: {e.Channel}\nSub only: {e.ChannelState.SubOnly}\nEmotes only: {e.ChannelState.EmoteOnly}\nSlow mode: {e.ChannelState.SlowMode}\nR9K: {e.ChannelState.R9K}"); }
private void ChanelChangedState(object sender, OnChannelStateChangedArgs e) { //throw new NotImplementedException(); }
private void Client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e) { throw new NotImplementedException(); }
/// <summary> /// Passes <see cref="OnChannelStateChanged"/> events down to subscribed plugins. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">An <see cref="OnChannelStateChangedArgs"/> object.</param> private void TwitchClient_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e) => this.OnChannelStateChanged?.Invoke(this, e);
private void _client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e) { }
private void ChannelStateChanged(object sender, OnChannelStateChangedArgs e) { SetChannelStateValues(e.ChannelState); }
/// <summary> /// Called when the state of the channel has been changed. /// </summary> private void Client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e) { Console.WriteLine($"[{e.Channel}] Channel State Updated."); }
private async void Client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e) { await _eventProxy.PublishAsync(new TwitchChannelStateChangedNotification(this, e.Channel, e.ChannelState)) .ConfigureAwait(false); }
private void Client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e) { logService.Add($"{e.ChannelState.Channel}", MessageType.Type.DEBUGINFO, MethodBase.GetCurrentMethod().DeclaringType); }