本文整理匯總了C#中Smuxi.Engine.MessageBuilder.AppendSenderPrefix方法的典型用法代碼示例。如果您正苦於以下問題:C# MessageBuilder.AppendSenderPrefix方法的具體用法?C# MessageBuilder.AppendSenderPrefix怎麽用?C# MessageBuilder.AppendSenderPrefix使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Smuxi.Engine.MessageBuilder
的用法示例。
在下文中一共展示了MessageBuilder.AppendSenderPrefix方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: SetUp
public void SetUp()
{
JsConfig<MessagePartModel>.ExcludeTypeInfo = true;
var builder = new MessageBuilder();
builder.AppendSenderPrefix(
new ContactModel("meeebey", "meebey", "netid", "netprot")
);
builder.AppendText("solange eine message aber keine url hat ist der vorteil nur gering (wenn ueberhaupt)");
SimpleMessage = builder.ToMessage();
SimpleMessageJson = JsonSerializer.SerializeToString(SimpleMessage);
SimpleMessageDtoV1 = JsonSerializer.DeserializeFromString<MessageDtoModelV1>(SimpleMessageJson);
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);
builder.AppendText(" ");
builder.AppendUrl("https://www.smuxi.org/issues/show/428", "smuxi#428");
ComplexMessage = builder.ToMessage();
ComplexMessageJson = JsonSerializer.SerializeToString(ComplexMessage);
ComplexMessageDtoV1 = JsonSerializer.DeserializeFromString<MessageDtoModelV1>(ComplexMessageJson);
}