private void Client_OnHostingStopped(object sender, OnHostingStoppedArgs e) { log.Add(new MessageEntry() { Message = "Hosting Stopped: " + e.HostingStopped.HostingChannel, Time = DateTime.Now }); }
/// <summary> /// Invokes the on hosting stopped. /// </summary> /// <param name="client">The client.</param> /// <param name="hostingChannel">The hosting channel.</param> /// <param name="viewers">The viewers.</param> public static void InvokeOnHostingStopped(this TwitchClient client, string hostingChannel, int viewers) { OnHostingStoppedArgs model = new OnHostingStoppedArgs() { HostingStopped = new HostingStopped(hostingChannel, viewers) }; client.RaiseEvent("OnHostingStopped", model); }
private void OnHostingStopped(object sender, OnHostingStoppedArgs e) { string content = ""; content = "<div><span style=\"color:#A4A0A0; font-family:Arial,Helvetica,sans-serif; font-size:10pt;\">Stopped hosting " + e.HostingChannel + " for " + e.Viewers + " viewers.</span></div>"; if (webChat.InvokeRequired) { Action act = () => this.webChat.Document.Body.InnerHtml += content; webChat.Invoke(act); act = () => ScrollToBottom(); webChat.Invoke(act); } }
private void onHostingStopped(object sender, OnHostingStoppedArgs e) { MessageBox.Show($"Channel {e.HostingChannel} has stopped hosting!"); }
private static void Client_OnHostingStopped(object sender, OnHostingStoppedArgs e) { StreamStatus = (int)StreamStatus % 2 == 0 ? StreamState.OnlineNotHosting : StreamState.OfflineNotHosting; BotTools.LogLine($"Host stopped: {e.HostingStopped.HostingChannel}"); }
/// <summary> /// Passes <see cref="OnHostingStopped"/> events down to subscribed plugins. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">An <see cref="OnHostingStoppedArgs"/> object.</param> private void TwitchClient_OnHostingStopped(object sender, OnHostingStoppedArgs e) => this.OnHostingStopped?.Invoke(this, e);
private void Client_OnHostingStopped(object sender, OnHostingStoppedArgs e) { OnChatEvent?.Invoke(new TwitchChatEvent(TwitchChatEventType.HostingStopped, "Hosting Stopped.")); }
private void _client_OnHostingStopped(object sender, OnHostingStoppedArgs e) { }
/// <summary> /// Called when the channel has stopped hosting another channel. /// </summary> private static void Client_OnHostingStopped(object sender, OnHostingStoppedArgs e) { Console.WriteLine($"[CHANNEL] Stopped hosting {e.HostingStopped.HostingChannel}."); }
private async void Client_OnHostingStopped(object sender, OnHostingStoppedArgs e) { await _eventProxy.PublishAsync(new TwitchHostingStoppedNotification(this, e.HostingStopped)) .ConfigureAwait(false); }