C# Класс Blog.Services.Helpers.Wcf.PostsResource

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

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

Метод Описание
AddPost ( Post post ) : Post
DeletePost ( int postId ) : bool
GetHeartBeat ( ) : 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
GetPostsForUser ( int userId, int threshold = 5, int skip = 10 ) : List
GetRecentPosts ( int postsCount ) : List
GetRelatedPosts ( int postId ) : RelatedPosts
SearchPosts ( string query, int threshold = 5, int skip = 10 ) : List
UpdatePost ( Post post ) : Post

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

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

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

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

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

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

public GetHeartBeat ( ) : bool
Результат 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

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

public GetPostsForUser ( int userId, int threshold = 5, int skip = 10 ) : List
userId int
threshold int
skip int
Результат List

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

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

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

public GetRelatedPosts ( int postId ) : RelatedPosts
postId int
Результат RelatedPosts

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

public SearchPosts ( string query, int threshold = 5, int skip = 10 ) : List
query string
threshold int
skip int
Результат List

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

public UpdatePost ( Post post ) : Post
post Post
Результат Post