C# 클래스 Blog.Services.Implementation.PostsService

상속: BaseService, IPostsService
파일 보기 프로젝트 열기: jsnmgpnty/Blogness2.0

공개 메소드들

메소드 설명
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