Exemplo n.º 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);
        }
Exemplo n.º 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);
        }