C# Class Blog.Services.Helpers.Rest.PostsRestResource

Inheritance: IPostsRestResource
Afficher le fichier Open project: jsnmgpnty/Blogness2.0

Méthodes publiques

Méthode Description
AddPost ( Post post, string authenticationToken ) : Post
DeletePost ( int postId, string authenticationToken ) : bool
GetMorePopularPosts ( int postsCount, int skip ) : List
GetMorePostsByTag ( string tagName, int skip ) : List
GetMorePostsByUser ( int userId, int skip ) : List
GetMoreRecentPosts ( int postsCount, int skip ) : List
GetPopularPosts ( int postsCount ) : List
GetPost ( int postId ) : Post
GetPostsByCommunity ( int communityId, int threshold = 10, int skip = 10 ) : List
GetPostsByTag ( string tagName ) : List
GetPostsByUser ( int userId ) : List
GetRecentPosts ( int postsCount ) : List
GetRelatedPosts ( int postId ) : RelatedPosts
UpdatePost ( Post post, string authenticationToken ) : Post

Method Details

AddPost() public méthode

public AddPost ( Post post, string authenticationToken ) : Post
post Blog.Common.Contracts.Post
authenticationToken string
Résultat Blog.Common.Contracts.Post

DeletePost() public méthode

public DeletePost ( int postId, string authenticationToken ) : bool
postId int
authenticationToken string
Résultat bool

GetMorePopularPosts() public méthode

public GetMorePopularPosts ( int postsCount, int skip ) : List
postsCount int
skip int
Résultat List

GetMorePostsByTag() public méthode

public GetMorePostsByTag ( string tagName, int skip ) : List
tagName string
skip int
Résultat List

GetMorePostsByUser() public méthode

public GetMorePostsByUser ( int userId, int skip ) : List
userId int
skip int
Résultat List

GetMoreRecentPosts() public méthode

public GetMoreRecentPosts ( int postsCount, int skip ) : List
postsCount int
skip int
Résultat List

GetPopularPosts() public méthode

public GetPopularPosts ( int postsCount ) : List
postsCount int
Résultat List

GetPost() public méthode

public GetPost ( int postId ) : Post
postId int
Résultat Blog.Common.Contracts.Post

GetPostsByCommunity() public méthode

public GetPostsByCommunity ( int communityId, int threshold = 10, int skip = 10 ) : List
communityId int
threshold int
skip int
Résultat List

GetPostsByTag() public méthode

public GetPostsByTag ( string tagName ) : List
tagName string
Résultat List

GetPostsByUser() public méthode

public GetPostsByUser ( int userId ) : List
userId int
Résultat List

GetRecentPosts() public méthode

public GetRecentPosts ( int postsCount ) : List
postsCount int
Résultat List

GetRelatedPosts() public méthode

public GetRelatedPosts ( int postId ) : RelatedPosts
postId int
Résultat Blog.Common.Contracts.ViewModels.RelatedPosts

UpdatePost() public méthode

public UpdatePost ( Post post, string authenticationToken ) : Post
post Blog.Common.Contracts.Post
authenticationToken string
Résultat Blog.Common.Contracts.Post