Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Display timeline

$
0
0
Thanks Linvi,

I thought I had missed something and perhaps the HTML of the tweets were returned from the API. Thanks for the reply....have pasted more of my code in case it helps anyone else...
@model Tweetinvi.Core.Interfaces.ITweet[]
@for (int i = 0; i < Model.Length; i++)
            {
                <div class="row twitter-row">
                    <div class="header">
                        <a class="twitter-date" href="#">@Model[i].CreatedAt.ToString("MMM yy")</a>
                        <div class="twitter-author">
                            <a href="#">
                                <img class="twitter-user-image" src="@Model[i].Creator.ProfileImageUrl" />
                                <span class="twitter-Name">@Model[i].Creator.Name</span>
                                <span class="twitter-screenName">@(string.Format("@{0}", Model[i].Creator.ScreenName))</span>
                            </a>
                        </div>
                    </div>
                    <div class="twitter-entry">
                        @{
                string displayText = Model[i].Text;

                if (Model[i].Urls.Count != 0)
                {
                    foreach (var url in Model[i].Urls)
                    {
                        displayText = displayText.Replace(url.URL, string.Format("<a href='{0}' class='twitter-link'>{0}</a>", url.URL));
                    }
                }
                        }
                        @Html.Raw(displayText)
                </div>
            </div>
            }

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>