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

Inheritance: ICommentService
Afficher le fichier Open project: skimur/skimur

Méthodes publiques

Méthode 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 méthode

public CommentService ( IDbConnectionProvider conn ) : System
conn IDbConnectionProvider
Résultat System

DeleteComment() public méthode

public DeleteComment ( System.Guid commentId, string body ) : void
commentId System.Guid
body string
Résultat void

GetAllCommentsForPost() public méthode

public GetAllCommentsForPost ( System.Guid postId, CommentSortBy sortBy = null ) : List
postId System.Guid
sortBy CommentSortBy
Résultat List

GetChildrenForComment() public méthode

public GetChildrenForComment ( System.Guid commentId, System.Guid authorId = null ) : List
commentId System.Guid
authorId System.Guid
Résultat List

GetCommentById() public méthode

public GetCommentById ( System.Guid id ) : Comment
id System.Guid
Résultat Comment

GetCommentsByIds() public méthode

public GetCommentsByIds ( List ids ) : List
ids List
Résultat List

GetCommentsForUser() public méthode

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
Résultat SeekedList

GetNumberOfCommentsForPost() public méthode

public GetNumberOfCommentsForPost ( System.Guid postId ) : int
postId System.Guid
Résultat int

GetReportedComments() public méthode

public GetReportedComments ( List subs = null, int skip = null, int take = null ) : SeekedList
subs List
skip int
take int
Résultat SeekedList

InsertComment() public méthode

public InsertComment ( Comment comment ) : void
comment Comment
Résultat void

SetIgnoreReportsForComment() public méthode

public SetIgnoreReportsForComment ( System.Guid commentId, bool ignoreReports ) : void
commentId System.Guid
ignoreReports bool
Résultat void

UpdateCommentBody() public méthode

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

UpdateCommentSorting() public méthode

public UpdateCommentSorting ( System.Guid commentId, double confidence, double qa ) : void
commentId System.Guid
confidence double
qa double
Résultat void

UpdateCommentVotes() public méthode

public UpdateCommentVotes ( System.Guid commentId, int upVotes, int downVotes ) : void
commentId System.Guid
upVotes int
downVotes int
Résultat void

UpdateNumberOfReportsForComment() public méthode

public UpdateNumberOfReportsForComment ( System.Guid commentId, int numberOfReports ) : void
commentId System.Guid
numberOfReports int
Résultat void