C# Класс Skimur.App.Services.Impl.CommentService

Наследование: ICommentService
Показать файл Открыть проект

Открытые методы

Метод Описание
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