Beispiel #1
0
        private void FormatTweetMessage(Message msg, User user, Paragraph paragraph)
        {
            if (msg.Tweet != null)
            {
                var bodyInline = RenderUserMessage(msg.Tweet.Message);

                var tweetView = new InlineTweetView(bodyInline, msg.Tweet);

                paragraph.Inlines.Add(FormatUserName(user) + ":" + Environment.NewLine);
                paragraph.Inlines.Add(tweetView);
                return;
            }

            // fallback
            FormatUserMessage(msg, user, paragraph);
        }
Beispiel #2
0
        private void FormatTweetMessage(Message msg, User user, Paragraph paragraph)
        {
            if (msg.Tweet != null)
            {
                var bodyInline = RenderUserMessage(msg.Tweet.Message);

                var tweetView = new InlineTweetView(bodyInline, msg.Tweet);

                paragraph.Inlines.Add(FormatUserName(user) + ":" + Environment.NewLine);
                paragraph.Inlines.Add(tweetView);
                return;
            }

            // fallback
            FormatUserMessage(msg, user, paragraph);
        }