C# 클래스 Skimur.App.Services.Impl.PostService

상속: IPostService
파일 보기 프로젝트 열기: skimur/skimur

공개 메소드들

메소드 설명
ApprovePost ( System.Guid postId, System.Guid userId ) : void
GetPostById ( System.Guid id ) : Post
GetPosts ( List subs = null, PostsSortBy sortby = PostsSortBy.New, PostsTimeFilter timeFilter = PostsTimeFilter.All, System.Guid userId = null, bool hideRemovedPosts = true, bool showDeleted = false, bool onlyAll = false, bool nsfw = null, bool sticky = null, bool stickyFirst = false, int skip = null, int take = null ) : SeekedList
GetReportedPosts ( List subs = null, int skip = null, int take = null ) : SeekedList
GetUnmoderatedPosts ( List subs = null, int skip = null, int take = null ) : SeekedList
InsertPost ( Post post ) : void
PostService ( IDbConnectionProvider conn ) : System
QueryPosts ( string text, System.Guid subId = null, PostsSearchSortBy sortBy = PostsSearchSortBy.Relevance, PostsTimeFilter timeFilter = PostsTimeFilter.All, System.Guid userId = null, bool hideRemovedPosts = true, bool showDeleted = false, bool nsfw = null, int skip = null, int take = null ) : SeekedList
RemovePost ( System.Guid postId, System.Guid userId ) : void
SetIgnoreReportsForPost ( System.Guid postId, bool ignoreReports ) : void
SetStickyForPost ( System.Guid postId, bool sticky ) : void
UpdateMediaObjectForPost ( System.Guid postId, Post mediaObject ) : void
UpdateNumberOfCommentsForPost ( System.Guid postId, int numberOfComments ) : void
UpdateNumberOfReportsForPost ( System.Guid postId, int numberOfReports ) : void
UpdatePost ( Post post ) : void
UpdatePostVotes ( System.Guid postId, int upVotes, int downVotes ) : void
UpdateThumbnailForPost ( System.Guid postId, string thumbnail ) : void

메소드 상세

ApprovePost() 공개 메소드

public ApprovePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
리턴 void

GetPostById() 공개 메소드

public GetPostById ( System.Guid id ) : Post
id System.Guid
리턴 Post

GetPosts() 공개 메소드

public GetPosts ( List subs = null, PostsSortBy sortby = PostsSortBy.New, PostsTimeFilter timeFilter = PostsTimeFilter.All, System.Guid userId = null, bool hideRemovedPosts = true, bool showDeleted = false, bool onlyAll = false, bool nsfw = null, bool sticky = null, bool stickyFirst = false, int skip = null, int take = null ) : SeekedList
subs List
sortby PostsSortBy
timeFilter PostsTimeFilter
userId System.Guid
hideRemovedPosts bool
showDeleted bool
onlyAll bool
nsfw bool
sticky bool
stickyFirst bool
skip int
take int
리턴 SeekedList

GetReportedPosts() 공개 메소드

public GetReportedPosts ( List subs = null, int skip = null, int take = null ) : SeekedList
subs List
skip int
take int
리턴 SeekedList

GetUnmoderatedPosts() 공개 메소드

public GetUnmoderatedPosts ( List subs = null, int skip = null, int take = null ) : SeekedList
subs List
skip int
take int
리턴 SeekedList

InsertPost() 공개 메소드

public InsertPost ( Post post ) : void
post Post
리턴 void

PostService() 공개 메소드

public PostService ( IDbConnectionProvider conn ) : System
conn IDbConnectionProvider
리턴 System

QueryPosts() 공개 메소드

public QueryPosts ( string text, System.Guid subId = null, PostsSearchSortBy sortBy = PostsSearchSortBy.Relevance, PostsTimeFilter timeFilter = PostsTimeFilter.All, System.Guid userId = null, bool hideRemovedPosts = true, bool showDeleted = false, bool nsfw = null, int skip = null, int take = null ) : SeekedList
text string
subId System.Guid
sortBy PostsSearchSortBy
timeFilter PostsTimeFilter
userId System.Guid
hideRemovedPosts bool
showDeleted bool
nsfw bool
skip int
take int
리턴 SeekedList

RemovePost() 공개 메소드

public RemovePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
리턴 void

SetIgnoreReportsForPost() 공개 메소드

public SetIgnoreReportsForPost ( System.Guid postId, bool ignoreReports ) : void
postId System.Guid
ignoreReports bool
리턴 void

SetStickyForPost() 공개 메소드

public SetStickyForPost ( System.Guid postId, bool sticky ) : void
postId System.Guid
sticky bool
리턴 void

UpdateMediaObjectForPost() 공개 메소드

public UpdateMediaObjectForPost ( System.Guid postId, Post mediaObject ) : void
postId System.Guid
mediaObject Post
리턴 void

UpdateNumberOfCommentsForPost() 공개 메소드

public UpdateNumberOfCommentsForPost ( System.Guid postId, int numberOfComments ) : void
postId System.Guid
numberOfComments int
리턴 void

UpdateNumberOfReportsForPost() 공개 메소드

public UpdateNumberOfReportsForPost ( System.Guid postId, int numberOfReports ) : void
postId System.Guid
numberOfReports int
리턴 void

UpdatePost() 공개 메소드

public UpdatePost ( Post post ) : void
post Post
리턴 void

UpdatePostVotes() 공개 메소드

public UpdatePostVotes ( System.Guid postId, int upVotes, int downVotes ) : void
postId System.Guid
upVotes int
downVotes int
리턴 void

UpdateThumbnailForPost() 공개 메소드

public UpdateThumbnailForPost ( System.Guid postId, string thumbnail ) : void
postId System.Guid
thumbnail string
리턴 void