本文整理匯總了C#中Smuxi.Engine.MessageBuilder.AppendIdendityName方法的典型用法代碼示例。如果您正苦於以下問題:C# MessageBuilder.AppendIdendityName方法的具體用法?C# MessageBuilder.AppendIdendityName怎麽用?C# MessageBuilder.AppendIdendityName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Smuxi.Engine.MessageBuilder
的用法示例。
在下文中一共展示了MessageBuilder.AppendIdendityName方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: FormatUpload
void FormatUpload(MessageBuilder bld, PersonModel person, ChatModel chat, Message message)
{
// Figure out what the user uploaded, we need to issue another call for this
var upload = Client.Get<UploadWrapper>(String.Format("/room/{0}/messages/{1}/upload.json", chat.ID, message.Id)).Upload;
bld.AppendEventPrefix();
bld.AppendIdendityName(person).AppendSpace();
bld.AppendText(_("has uploaded '{0}' ({1} B) {2}"), upload.Name, upload.Byte_Size, upload.Full_Url);
}
示例2: SetUp
public void SetUp()
{
Buffer = CreateBuffer();
TestMessages = new List<MessageModel>();
var builder = new MessageBuilder();
builder.TimeStamp = DateTime.MinValue;
builder.AppendText("msg1");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendText("msg2");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendErrorText("msg3");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendText("msg4");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendText("msg5");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendText("msg6");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendText("msg7");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendText("msg8");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendText("msg9");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendText("msg10");
TestMessages.Add(builder.ToMessage());
builder = new MessageBuilder();
builder.AppendText("msg11");
TestMessages.Add(builder.ToMessage());
foreach (var msg in TestMessages) {
Buffer.Add(msg);
}
builder = new MessageBuilder();
builder.AppendIdendityName(
new ContactModel("meeebey", "meebey", "netid", "netprot")
);
builder.AppendSpace();
builder.AppendText("solange eine message aber keine url hat ist der vorteil nur gering (wenn ueberhaupt)");
SimpleMessage = builder.ToMessage();
}
示例3: FormatEvent
void FormatEvent(MessageBuilder bld, PersonModel person, string action)
{
bld.AppendEventPrefix();
bld.AppendIdendityName(person).AppendSpace();
bld.AppendText(action);
}
示例4: SetUp
public void SetUp()
{
var builder = new MessageBuilder();
builder.AppendIdendityName(
new ContactModel("meeebey", "meebey", "netid", "netprot")
);
builder.AppendSpace();
builder.AppendText("solange eine message aber keine url hat ist der vorteil nur gering (wenn ueberhaupt)");
SimpleMessage = builder.ToMessage();
var topic = "Smuxi the IRC client for sophisticated users: http://smuxi.org/ | Smuxi 0.7.2.2 'Lovegood' released (2010-07-27) http://bit.ly/9nvsZF | FAQ: http://smuxi.org/faq/ | Deutsch? -> #smuxi.de | Español? -> #smuxi.es | Smuxi @ FOSDEM 2010 talk: http://bit.ly/anHJfm";
builder = new MessageBuilder();
builder.AppendMessage(topic);
ComplexMessage = builder.ToMessage();
}