C# Class BlogEngine.Core.Json.JsonPosts

List of posts
Afficher le fichier Open project: rasmuskl/ReSharperCourse

Méthodes publiques

Méthode Description
GetPager ( int page, int pageSize ) : string

Builds pager control for posts page

GetPosts ( int page, int pageSize, string postType, string filter, string title ) : List

Gets post list based on selection for current page

Private Methods

Méthode Description
GetAuthor ( string author ) : string
GetCategories ( ICollection categories ) : string
GetComments ( ICollection comments, string postUrl ) : string
GetTags ( ICollection tags ) : string

Method Details

GetPager() public static méthode

Builds pager control for posts page
public static GetPager ( int page, int pageSize ) : string
page int Current Page Number
pageSize int Page Size
Résultat string

GetPosts() public static méthode

Gets post list based on selection for current page
public static GetPosts ( int page, int pageSize, string postType, string filter, string title ) : List
page int Current page
pageSize int Page Size
postType string Selected post type: draft, published or all
filter string Secondary filter: category, tag, author or all
title string Value selected in secondary filter
Résultat List