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


C# Messages.IrcMessageWriter类代码示例

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


IrcMessageWriter类属于MetaBuilders.Irc.Messages命名空间,在下文中一共展示了IrcMessageWriter类的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( "You cannot use colors on this channel. Not sent: " );
     writer.AddParameter( this.Text );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:10,代码来源:CannotUseColorsMessage.cs

示例2: AddParametersToFormat

        /// <exclude />
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :irc.server 456 client :Accept list is full

            base.AddParametersToFormat( writer );
            writer.AddParameter( "Accept list is full" );
        }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:8,代码来源:AcceptListFullMessage.cs

示例3: 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

示例4: 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

示例5: 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

示例6: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     // we only write the official version of this message, although other versions exist,
     // thus the message may not be the same raw as parsed.
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.currentGlobalUsers + this.userCount + this.max + this.UserLimit );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:10,代码来源:GlobalUsersReplyMessage.cs

示例7: 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

示例8: 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

示例9: AddParametersToFormat

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

示例10: 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

示例11: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     if ( Channels.Count != 0 )
     {
         writer.AddList( Channels, ",", true );
     }
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:11,代码来源:NamesMessage.cs

示例12: AddParametersToFormat

        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            //:mesra.kl.my.dal.net 329 artificer #c# 1043382332

            base.AddParametersToFormat( writer );
            writer.AddParameter( this.Channel );
            writer.AddParameter( MessageUtil.ConvertToUnixTime( this.TimeCreated ).ToString( CultureInfo.InvariantCulture ) );
        }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:11,代码来源:ChannelCreationTimeMessage.cs

示例13: 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

示例14: 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

示例15: 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,代码来源:PingMessage.cs


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