Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.RenderRssChannel(StoryDataTableToRss.ConvertToRssChannel(
                               StoryCache.GetUserKickedStories(this.UrlParameters.UserIdentifier, this.HostProfile.HostID, 1, 25),
                               this.HostProfile.SiteTitle + " : Stories kicked by " + this.UrlParameters.UserIdentifier, "Stories kicked by " + this.UrlParameters.UserIdentifier,
                               this.HostProfile.RootUrl + "/", this.HostProfile));
 }
Exemplo n.º 2
0
            public static ApiPagedList <ApiStory> GetUserKickedStories(int hostID, string username, int pageNumber, int pageSize)
            {
                ApplyPageLimits(ref pageNumber, ref pageSize);
                PagedStoryCollection pagedCollection = new PagedStoryCollection();

                pagedCollection.Items = StoryCache.GetUserKickedStories(username, hostID, pageNumber, pageSize);
                pagedCollection.Total = StoryCache.GetUserKickedStoriesCount(username, hostID);
                return(pagedCollection.ToApi());
            }
Exemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.UserProfileHeader.User            = this.UserProfile;
     this.StoryListControl.NoStoriesCaption = string.Format("{0} has not kicked any stories.", this.UrlParameters.UserIdentifier);
     this.StoryListControl.Title            = "Stories kicked by " + this.UrlParameters.UserIdentifier;
     this.StoryListControl.DataBind(StoryCache.GetUserKickedStories(this.UrlParameters.UserIdentifier, this.HostProfile.HostID, this.UrlParameters.PageNumber, this.UrlParameters.PageSize));
     this.Paging.RecordCount = StoryCache.GetUserKickedStoriesCount(this.UrlParameters.UserIdentifier, this.HostProfile.HostID);
     this.Paging.PageNumber  = UrlParameters.PageNumber;
     this.Paging.PageSize    = UrlParameters.PageSize;
     this.Paging.BaseUrl     = UrlFactory.CreateUrl(this.PageName, this.UrlParameters.UserIdentifier);
 }