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 |
||
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 |
||
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 |
public CommentService ( IDbConnectionProvider conn ) : System | ||
conn | IDbConnectionProvider | |
return | System |
public DeleteComment ( System.Guid commentId, string body ) : void | ||
commentId | System.Guid | |
body | string | |
return | void |
public GetAllCommentsForPost ( System.Guid postId, CommentSortBy sortBy = null ) : List |
||
postId | System.Guid | |
sortBy | CommentSortBy | |
return | List |
public GetChildrenForComment ( System.Guid commentId, System.Guid authorId = null ) : List |
||
commentId | System.Guid | |
authorId | System.Guid | |
return | List |
public GetCommentById ( System.Guid id ) : Comment | ||
id | System.Guid | |
return | Comment |
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 |
public GetNumberOfCommentsForPost ( System.Guid postId ) : int | ||
postId | System.Guid | |
return | int |
public GetReportedComments ( List |
||
subs | List |
|
skip | int | |
take | int | |
return | SeekedList |
public InsertComment ( Comment comment ) : void | ||
comment | Comment | |
return | void |
public SetIgnoreReportsForComment ( System.Guid commentId, bool ignoreReports ) : void | ||
commentId | System.Guid | |
ignoreReports | bool | |
return | void |
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 |
public UpdateCommentSorting ( System.Guid commentId, double confidence, double qa ) : void | ||
commentId | System.Guid | |
confidence | double | |
qa | double | |
return | void |
public UpdateCommentVotes ( System.Guid commentId, int upVotes, int downVotes ) : void | ||
commentId | System.Guid | |
upVotes | int | |
downVotes | int | |
return | void |
public UpdateNumberOfReportsForComment ( System.Guid commentId, int numberOfReports ) : void | ||
commentId | System.Guid | |
numberOfReports | int | |
return | void |