当前位置: 首页>>代码示例>>C#>>正文


C# IrcMessageWriter.AddParameter方法代码示例

本文整理汇总了C#中MetaBuilders.Irc.Messages.IrcMessageWriter.AddParameter方法的典型用法代码示例。如果您正苦于以下问题:C# IrcMessageWriter.AddParameter方法的具体用法?C# IrcMessageWriter.AddParameter怎么用?C# IrcMessageWriter.AddParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MetaBuilders.Irc.Messages.IrcMessageWriter的用法示例。


在下文中一共展示了IrcMessageWriter.AddParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Channel );
     writer.AddParameter( this.Knocker.ToString() );
     writer.AddParameter( "has asked for an invite." );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:10,代码来源:KnockRequestMessage.cs

示例2: AddParametersToFormat

 /// <exclude />
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Limit.ToString( CultureInfo.InvariantCulture ) );
     writer.AddParameter( MessageUtil.CreateList( this.Nicks, "," ) );
     writer.AddParameter( "Monitor list is full." );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:8,代码来源:MonitorListFullMessage.cs

示例3: AddParametersToFormat

 /// <exclude />
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Nick );
     writer.AddParameter( this.Channel );
     writer.AddParameter( "Cannot kill, kick or deop channel service" );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:8,代码来源:CannotRemoveServiceBot.cs

示例4: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     // :irc.ptptech.com 253 artificer 15 :unknown connection(s)
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.UnknownConnectionCount.ToString( CultureInfo.InvariantCulture ) );
     writer.AddParameter( "unknown connection(s)" );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:10,代码来源:UnknownConnectionsMessage.cs

示例5: AddParametersToFormat

        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :mesra.kl.my.dal.net 307 artificer acidjnk :has identified for this nick

            base.AddParametersToFormat( writer );
            writer.AddParameter( this.Nick );
            writer.AddParameter( "has identified for this nick" );
        }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:11,代码来源:WhoIsRegisteredNickReplyMessage.cs

示例6: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat(IrcMessageWriter writer)
 {
     base.AddParametersToFormat (writer);
     writer.AddParameter(this.Command);
     foreach( String param in this.Parameters ) {
         writer.AddParameter(param);
     }
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:11,代码来源:GenericMessage.cs

示例7: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Target );
     if ( this.ForwardServer.Length != 0 )
     {
         writer.AddParameter( this.ForwardServer );
     }
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:12,代码来源:PongMessage.cs

示例8: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.User.Nick );
     writer.AddParameter( this.User.UserName );
     writer.AddParameter( this.User.HostName );
     writer.AddParameter( "*" );
     writer.AddParameter( this.User.RealName );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:12,代码来源:WhoWasUserReplyMessage.cs

示例9: AddParametersToFormat

        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :irc.inter.net.il 042 NeboBot NeboBot 5ILABFZUY :your unique ID

            base.AddParametersToFormat( writer );
            writer.AddParameter( this.Target );
            writer.AddParameter( this.UniqueId );
            writer.AddParameter( this.yourUniqueID );
        }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:12,代码来源:UniqueIdMessage.cs

示例10: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     if ( this.Query != null && this.Query.Length != 0 )
     {
         writer.AddParameter( this.Query );
         writer.AddParameter( this.Target );
     }
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:12,代码来源:StatsMessage.cs

示例11: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Mask.ToString() );
     if ( this.restrictToOps )
     {
         writer.AddParameter( "o" );
     }
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:12,代码来源:WhoMessage.cs

示例12: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.WatchedUser.Nick );
     writer.AddParameter( this.WatchedUser.UserName );
     writer.AddParameter( this.WatchedUser.HostName );
     writer.AddParameter( MessageUtil.ConvertToUnixTime( this.TimeOfChange ).ToString( CultureInfo.InvariantCulture ) );
     writer.AddParameter( this.ChangeMessage );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:12,代码来源:WatchedUserChangedMessage.cs

示例13: AddParametersToFormat

        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            base.AddParametersToFormat( writer );
            writer.AddParameter( "-" );

            if ( this.nicks != null )
            {
                writer.AddParameter( MessageUtil.CreateList( this.nicks, "," ), true );
            }
        }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:13,代码来源:MonitorRemoveUsersMessage.cs

示例14: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     if ( this.onlineOnly )
     {
         writer.AddParameter( "l" );
     }
     else
     {
         writer.AddParameter( "L" );
     }
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:15,代码来源:WatchListRequestMessage.cs

示例15: AddParametersToFormat

        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :irc.pte.hu 282 artificer :End of /ACCEPT list.

            base.AddParametersToFormat( writer );
            writer.AddParameter( "End of /ACCEPT list." );
        }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:10,代码来源:AcceptListEndReplyMessage.cs


注:本文中的MetaBuilders.Irc.Messages.IrcMessageWriter.AddParameter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。