예제 #1
0
        public DeltaShoutsHtml GetDeltaShouts(string toUsername, int chatID, int lastReceivedShoutID)
        {
            ShoutCollection shouts          = ShoutCache.GetDeltaShouts(HostProfile.HostID, toUsername, ToNullable(chatID), lastReceivedShoutID);
            DeltaShoutsHtml deltaShoutsHtml = new DeltaShoutsHtml();

            if (shouts.Count > 0)
            {
                ShoutList shoutList = new ShoutList(shouts);
                shoutList.ShowTime          = false;
                deltaShoutsHtml.Html        = ControlHelper.RenderControl(shoutList);
                deltaShoutsHtml.LatestShout = shouts[0].ToApi(this.HostProfile);
            }
            return(deltaShoutsHtml);
        }
예제 #2
0
        public DeltaShoutsHtml GetDeltaShouts(string toUsername, int chatID, int lastReceivedShoutID)
        {
            ShoutCollection shouts = ShoutCache.GetDeltaShouts(HostProfile.HostID, toUsername, ToNullable(chatID), lastReceivedShoutID);
            DeltaShoutsHtml deltaShoutsHtml = new DeltaShoutsHtml();

            if (shouts.Count > 0)
            {
                ShoutList shoutList = new ShoutList(shouts);
                shoutList.ShowTime = false;
                deltaShoutsHtml.Html = ControlHelper.RenderControl(shoutList);
                deltaShoutsHtml.LatestShout = shouts[0].ToApi(this.HostProfile);
            }
            return deltaShoutsHtml;
        }