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