C# Класс Blog.Services.Implementation.PostsService

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

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

Метод Описание
AddPost ( Post post ) : Post
DeletePost ( int postId ) : 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
PostsService ( IPostsLogic postsLogic, ICommentsLogic commentsLogic, IPostLikesLogic postLikesLogic, IViewCountLogic viewCountLogic, IConfigurationHelper configurationHelper, IErrorSignaler errorSignaler ) : System.Collections.Generic
SearchPosts ( string query, int threshold = 5, int skip = 10 ) : List
UpdatePost ( Post post ) : Post

Приватные методы

Метод Описание
SetPostProperties ( IEnumerable posts ) : List

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

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

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

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

public DeletePost ( int postId ) : bool
postId int
Результат 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
Результат Blog.Common.Contracts.ViewModels.RelatedPosts

PostsService() публичный метод

public PostsService ( IPostsLogic postsLogic, ICommentsLogic commentsLogic, IPostLikesLogic postLikesLogic, IViewCountLogic viewCountLogic, IConfigurationHelper configurationHelper, IErrorSignaler errorSignaler ) : System.Collections.Generic
postsLogic IPostsLogic
commentsLogic ICommentsLogic
postLikesLogic IPostLikesLogic
viewCountLogic IViewCountLogic
configurationHelper IConfigurationHelper
errorSignaler IErrorSignaler
Результат System.Collections.Generic

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 Blog.Common.Contracts.Post
Результат Blog.Common.Contracts.Post