本文整理汇总了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 );
}
示例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" );
}
示例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)" );
}
示例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." );
}
示例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" );
}
示例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 );
}
示例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." );
}
示例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" );
}
示例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 );
}
}
示例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);
}
}
示例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 );
}
}
示例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 ) );
}
示例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" );
}
}
示例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 );
}
}
示例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 );
}
}