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

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

            if (ctcpClient1TimeResponseReceivedEvent != null)
                ctcpClient1TimeResponseReceivedEvent.Set();
        }
コード例 #4
0
 private static void ctcpClient2_TimeResponseReceived(object sender, CtcpTimeResponseReceivedEventArgs e)
 {
     if (ctcpClient2TimeResponseReceivedEvent != null)
         ctcpClient2TimeResponseReceivedEvent.Set();
 }
コード例 #5
0
ファイル: BotDeathmic.cs プロジェクト: Kolpa/DeathmicChatbot
        public void ctcpClient_TimeResponseReceived(object sender, CtcpTimeResponseReceivedEventArgs e)
        {
            if (e.User.NickName == thisclient.LocalUser.NickName)
                clientReceivedTimeInfo = e.DateTime;

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