C# Class Skimur.App.Services.Impl.CommentService

Inheritance: ICommentService
Mostra file Open project: skimur/skimur

Public Methods

Method Description
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

Method Details

CommentService() public method

public CommentService ( IDbConnectionProvider conn ) : System
conn IDbConnectionProvider
return System

DeleteComment() public method

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

GetAllCommentsForPost() public method

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

GetChildrenForComment() public method

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

GetCommentById() public method

public GetCommentById ( System.Guid id ) : Comment
id System.Guid
return Comment

GetCommentsByIds() public method

public GetCommentsByIds ( List ids ) : List
ids List
return List

GetCommentsForUser() public method

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
return SeekedList

GetNumberOfCommentsForPost() public method

public GetNumberOfCommentsForPost ( System.Guid postId ) : int
postId System.Guid
return int

GetReportedComments() public method

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

InsertComment() public method

public InsertComment ( Comment comment ) : void
comment Comment
return void

SetIgnoreReportsForComment() public method

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

UpdateCommentBody() public method

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

UpdateCommentSorting() public method

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

UpdateCommentVotes() public method

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

UpdateNumberOfReportsForComment() public method

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