C# Класс Blog.Services.Helpers.Rest.PostsRestResource

Наследование: IPostsRestResource
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

AddPost() публичный Метод

public AddPost ( Post post, string authenticationToken ) : Post
post Blog.Common.Contracts.Post
authenticationToken string
Результат Blog.Common.Contracts.Post

DeletePost() публичный Метод

public DeletePost ( int postId, string authenticationToken ) : bool
postId int
authenticationToken string
Результат bool

GetMorePopularPosts() публичный Метод

public GetMorePopularPosts ( int postsCount, int skip ) : List
postsCount int
skip int
Результат List

GetMorePostsByTag() публичный Метод

public GetMorePostsByTag ( string tagName, int skip ) : List
tagName string
skip int
Результат List

GetMorePostsByUser() публичный Метод

public GetMorePostsByUser ( int userId, int skip ) : List
userId int
skip int
Результат List

GetMoreRecentPosts() публичный Метод

public GetMoreRecentPosts ( int postsCount, int skip ) : List
postsCount int
skip int
Результат List

GetPopularPosts() публичный Метод

public GetPopularPosts ( int postsCount ) : List
postsCount int
Результат List

GetPost() публичный Метод

public GetPost ( int postId ) : Post
postId int
Результат Blog.Common.Contracts.Post

GetPostsByCommunity() публичный Метод

public GetPostsByCommunity ( int communityId, int threshold = 10, int skip = 10 ) : List
communityId int
threshold int
skip int
Результат List

GetPostsByTag() публичный Метод

public GetPostsByTag ( string tagName ) : List
tagName string
Результат List

GetPostsByUser() публичный Метод

public GetPostsByUser ( int userId ) : List
userId int
Результат List

GetRecentPosts() публичный Метод

public GetRecentPosts ( int postsCount ) : List
postsCount int
Результат List

GetRelatedPosts() публичный Метод

public GetRelatedPosts ( int postId ) : RelatedPosts
postId int
Результат Blog.Common.Contracts.ViewModels.RelatedPosts

UpdatePost() публичный Метод

public UpdatePost ( Post post, string authenticationToken ) : Post
post Blog.Common.Contracts.Post
authenticationToken string
Результат Blog.Common.Contracts.Post