예제 #1
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());
            }
예제 #2
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);
 }