コード例 #1
0
 private void Client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e)
 {
     log.Add(new MessageEntry()
     {
         Message = "ChannelStateChanged: " + e.Channel, Time = DateTime.Now
     });
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 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"
     */
 }
コード例 #4
0
ファイル: Form1.cs プロジェクト: kouweizhong/TwitchLib
 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}");
 }
コード例 #5
0
ファイル: MatBot.cs プロジェクト: Mateo5001/ChatBotMat
 private void ChanelChangedState(object sender, OnChannelStateChangedArgs e)
 {
     //throw new NotImplementedException();
 }
コード例 #6
0
 private void Client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e)
 {
     throw new NotImplementedException();
 }
コード例 #7
0
 /// <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);
コード例 #8
0
ファイル: DrakeBot.cs プロジェクト: curin/AzureDrakeBot
 private void _client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e)
 {
 }
コード例 #9
0
 private void ChannelStateChanged(object sender, OnChannelStateChangedArgs e)
 {
     SetChannelStateValues(e.ChannelState);
 }
コード例 #10
0
 /// <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.");
 }
コード例 #11
0
 private async void Client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e)
 {
     await _eventProxy.PublishAsync(new TwitchChannelStateChangedNotification(this, e.Channel, e.ChannelState))
     .ConfigureAwait(false);
 }
コード例 #12
0
ファイル: TwitchChatBot.cs プロジェクト: str1py/Ducky_twitch
 private void Client_OnChannelStateChanged(object sender, OnChannelStateChangedArgs e)
 {
     logService.Add($"{e.ChannelState.Channel}", MessageType.Type.DEBUGINFO,
                    MethodBase.GetCurrentMethod().DeclaringType);
 }