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

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

공개 메소드들

메소드 설명
CommentService ( IDbConnectionProvider conn ) : System
DeleteComment ( System.Guid commentId, string body ) : void
GetAllCommentsForPost ( System.Guid postId, CommentSortBy sortBy = null ) : List
GetChildrenForComment ( System.Guid commentId, System.Guid authorId = null ) : List
GetCommentById ( System.Guid id ) : Comment
GetCommentsByIds ( List ids ) : List
GetCommentsForUser ( System.Guid userId, CommentSortBy sortBy = null, CommentsTimeFilter timeFilter = null, bool showDeleted = false, int skip = null, int take = null ) : SeekedList
GetNumberOfCommentsForPost ( System.Guid postId ) : int
GetReportedComments ( List subs = null, int skip = null, int take = null ) : SeekedList
InsertComment ( Comment comment ) : void
SetIgnoreReportsForComment ( System.Guid commentId, bool ignoreReports ) : void
UpdateCommentBody ( System.Guid commentId, string body, string bodyFormatted, System.DateTime dateEdited ) : void
UpdateCommentSorting ( System.Guid commentId, double confidence, double qa ) : void
UpdateCommentVotes ( System.Guid commentId, int upVotes, int downVotes ) : void
UpdateNumberOfReportsForComment ( System.Guid commentId, int numberOfReports ) : void

메소드 상세

CommentService() 공개 메소드

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

DeleteComment() 공개 메소드

public DeleteComment ( System.Guid commentId, string body ) : void
commentId System.Guid
body string
리턴 void

GetAllCommentsForPost() 공개 메소드

public GetAllCommentsForPost ( System.Guid postId, CommentSortBy sortBy = null ) : List
postId System.Guid
sortBy CommentSortBy
리턴 List

GetChildrenForComment() 공개 메소드

public GetChildrenForComment ( System.Guid commentId, System.Guid authorId = null ) : List
commentId System.Guid
authorId System.Guid
리턴 List

GetCommentById() 공개 메소드

public GetCommentById ( System.Guid id ) : Comment
id System.Guid
리턴 Comment

GetCommentsByIds() 공개 메소드

public GetCommentsByIds ( List ids ) : List
ids List
리턴 List

GetCommentsForUser() 공개 메소드

public GetCommentsForUser ( System.Guid userId, CommentSortBy sortBy = null, CommentsTimeFilter timeFilter = null, bool showDeleted = false, int skip = null, int take = null ) : SeekedList
userId System.Guid
sortBy CommentSortBy
timeFilter CommentsTimeFilter
showDeleted bool
skip int
take int
리턴 SeekedList

GetNumberOfCommentsForPost() 공개 메소드

public GetNumberOfCommentsForPost ( System.Guid postId ) : int
postId System.Guid
리턴 int

GetReportedComments() 공개 메소드

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

InsertComment() 공개 메소드

public InsertComment ( Comment comment ) : void
comment Comment
리턴 void

SetIgnoreReportsForComment() 공개 메소드

public SetIgnoreReportsForComment ( System.Guid commentId, bool ignoreReports ) : void
commentId System.Guid
ignoreReports bool
리턴 void

UpdateCommentBody() 공개 메소드

public UpdateCommentBody ( System.Guid commentId, string body, string bodyFormatted, System.DateTime dateEdited ) : void
commentId System.Guid
body string
bodyFormatted string
dateEdited System.DateTime
리턴 void

UpdateCommentSorting() 공개 메소드

public UpdateCommentSorting ( System.Guid commentId, double confidence, double qa ) : void
commentId System.Guid
confidence double
qa double
리턴 void

UpdateCommentVotes() 공개 메소드

public UpdateCommentVotes ( System.Guid commentId, int upVotes, int downVotes ) : void
commentId System.Guid
upVotes int
downVotes int
리턴 void

UpdateNumberOfReportsForComment() 공개 메소드

public UpdateNumberOfReportsForComment ( System.Guid commentId, int numberOfReports ) : void
commentId System.Guid
numberOfReports int
리턴 void