Provides data for the CtcpClient.VersionResponseReceived event.
Inheritance: CtcpResponseReceivedEventArgs
コード例 #1
0
ファイル: CtcpClient.cs プロジェクト: mattias197711/Jackett2
        /// <summary>
        /// Raises the <see cref="VersionResponseReceived"/> event.
        /// </summary>
        /// <param name="e">The <see cref="CtcpVersionResponseReceivedEventArgs"/> instance containing the event data.
        /// </param>
        protected virtual void OnVersionResponseReceived(CtcpVersionResponseReceivedEventArgs e)
        {
            var handler = this.VersionResponseReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #2
0
 /// <summary>
 /// Raises the <see cref="VersionResponseReceived"/> event.
 /// </summary>
 /// <param name="e">The <see cref="CtcpVersionResponseReceivedEventArgs"/> instance containing the event data.
 /// </param>
 protected virtual void OnVersionResponseReceived(CtcpVersionResponseReceivedEventArgs e)
 {
     var handler = this.VersionResponseReceived;
     if (handler != null)
         handler(this, e);
 }
コード例 #3
0
        private static void ctcpClient1_VersionResponseReceived(object sender, CtcpVersionResponseReceivedEventArgs e)
        {
            if (e.User.NickName == ircClient2.LocalUser.NickName)
                client2ReceivedVersionInfo = e.VersionInfo;

            if (ctcpClient1VersionResponseReceivedEvent != null)
                ctcpClient1VersionResponseReceivedEvent.Set();
        }
コード例 #4
0
 private static void ctcpClient2_VersionResponseReceived(object sender, CtcpVersionResponseReceivedEventArgs e)
 {
     if (ctcpClient2VersionResponseReceivedEvent != null)
         ctcpClient2VersionResponseReceivedEvent.Set();
 }
コード例 #5
0
ファイル: BotDeathmic.cs プロジェクト: Kolpa/DeathmicChatbot
        public void ctcpClient_VersionResponseReceived(object sender, CtcpVersionResponseReceivedEventArgs e)
        {
            if (e.User.NickName == thisclient.LocalUser.NickName)
                clientReceivedVersionInfo = e.VersionInfo;

            if (ctcpClientVersionResponseReceivedEvent != null)
                ctcpClientVersionResponseReceivedEvent.Set();
        }