private void Client_OnHostingStopped(object sender, OnHostingStoppedArgs e)
 {
     log.Add(new MessageEntry()
     {
         Message = "Hosting Stopped: " + e.HostingStopped.HostingChannel, Time = DateTime.Now
     });
 }
Example #2
0
        /// <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);
        }
Example #3
0
        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);
            }
        }
Example #4
0
 private void onHostingStopped(object sender, OnHostingStoppedArgs e)
 {
     MessageBox.Show($"Channel {e.HostingChannel} has stopped hosting!");
 }
Example #5
0
 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}");
 }
Example #6
0
 /// <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);
Example #7
0
 private void Client_OnHostingStopped(object sender, OnHostingStoppedArgs e)
 {
     OnChatEvent?.Invoke(new TwitchChatEvent(TwitchChatEventType.HostingStopped, "Hosting Stopped."));
 }
Example #8
0
 private void _client_OnHostingStopped(object sender, OnHostingStoppedArgs e)
 {
 }
Example #9
0
 /// <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);
 }