本文整理汇总了C#中MetaBuilders.Irc.Messages.IrcMessageWriter类的典型用法代码示例。如果您正苦于以下问题:C# IrcMessageWriter类的具体用法?C# IrcMessageWriter怎么用?C# IrcMessageWriter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IrcMessageWriter类属于MetaBuilders.Irc.Messages命名空间,在下文中一共展示了IrcMessageWriter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: AddParametersToFormat
/// <summary>
/// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
/// </summary>
protected override void AddParametersToFormat( IrcMessageWriter writer )
{
base.AddParametersToFormat( writer );
writer.AddParameter( this.Nick );
if ( this.Channels.Count != 0 )
{
writer.AddList( this.Channels, " ", false );
}
}
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:12,代码来源:WhoIsChannelsReplyMessage.cs
示例17: 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
示例18: 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
示例19: 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
示例20: 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
注:本文中的MetaBuilders.Irc.Messages.IrcMessageWriter类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论