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