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

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

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

Метод Описание
ApprovePost ( System.Guid postId, System.Guid userId ) : void
GetPostById ( System.Guid id ) : Post
GetPosts ( List subs = null, PostsSortBy sortby = PostsSortBy.New, PostsTimeFilter timeFilter = PostsTimeFilter.All, System.Guid userId = null, bool hideRemovedPosts = true, bool showDeleted = false, bool onlyAll = false, bool nsfw = null, bool sticky = null, bool stickyFirst = false, int skip = null, int take = null ) : SeekedList
GetReportedPosts ( List subs = null, int skip = null, int take = null ) : SeekedList
GetUnmoderatedPosts ( List subs = null, int skip = null, int take = null ) : SeekedList
InsertPost ( Post post ) : void
PostService ( IDbConnectionProvider conn ) : System
QueryPosts ( string text, System.Guid subId = null, PostsSearchSortBy sortBy = PostsSearchSortBy.Relevance, PostsTimeFilter timeFilter = PostsTimeFilter.All, System.Guid userId = null, bool hideRemovedPosts = true, bool showDeleted = false, bool nsfw = null, int skip = null, int take = null ) : SeekedList
RemovePost ( System.Guid postId, System.Guid userId ) : void
SetIgnoreReportsForPost ( System.Guid postId, bool ignoreReports ) : void
SetStickyForPost ( System.Guid postId, bool sticky ) : void
UpdateMediaObjectForPost ( System.Guid postId, Post mediaObject ) : void
UpdateNumberOfCommentsForPost ( System.Guid postId, int numberOfComments ) : void
UpdateNumberOfReportsForPost ( System.Guid postId, int numberOfReports ) : void
UpdatePost ( Post post ) : void
UpdatePostVotes ( System.Guid postId, int upVotes, int downVotes ) : void
UpdateThumbnailForPost ( System.Guid postId, string thumbnail ) : void

Описание методов

ApprovePost() публичный Метод

public ApprovePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
Результат void

GetPostById() публичный Метод

public GetPostById ( System.Guid id ) : Post
id System.Guid
Результат Post

GetPosts() публичный Метод

public GetPosts ( List subs = null, PostsSortBy sortby = PostsSortBy.New, PostsTimeFilter timeFilter = PostsTimeFilter.All, System.Guid userId = null, bool hideRemovedPosts = true, bool showDeleted = false, bool onlyAll = false, bool nsfw = null, bool sticky = null, bool stickyFirst = false, int skip = null, int take = null ) : SeekedList
subs List
sortby PostsSortBy
timeFilter PostsTimeFilter
userId System.Guid
hideRemovedPosts bool
showDeleted bool
onlyAll bool
nsfw bool
sticky bool
stickyFirst bool
skip int
take int
Результат SeekedList

GetReportedPosts() публичный Метод

public GetReportedPosts ( List subs = null, int skip = null, int take = null ) : SeekedList
subs List
skip int
take int
Результат SeekedList

GetUnmoderatedPosts() публичный Метод

public GetUnmoderatedPosts ( List subs = null, int skip = null, int take = null ) : SeekedList
subs List
skip int
take int
Результат SeekedList

InsertPost() публичный Метод

public InsertPost ( Post post ) : void
post Post
Результат void

PostService() публичный Метод

public PostService ( IDbConnectionProvider conn ) : System
conn IDbConnectionProvider
Результат System

QueryPosts() публичный Метод

public QueryPosts ( string text, System.Guid subId = null, PostsSearchSortBy sortBy = PostsSearchSortBy.Relevance, PostsTimeFilter timeFilter = PostsTimeFilter.All, System.Guid userId = null, bool hideRemovedPosts = true, bool showDeleted = false, bool nsfw = null, int skip = null, int take = null ) : SeekedList
text string
subId System.Guid
sortBy PostsSearchSortBy
timeFilter PostsTimeFilter
userId System.Guid
hideRemovedPosts bool
showDeleted bool
nsfw bool
skip int
take int
Результат SeekedList

RemovePost() публичный Метод

public RemovePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
Результат void

SetIgnoreReportsForPost() публичный Метод

public SetIgnoreReportsForPost ( System.Guid postId, bool ignoreReports ) : void
postId System.Guid
ignoreReports bool
Результат void

SetStickyForPost() публичный Метод

public SetStickyForPost ( System.Guid postId, bool sticky ) : void
postId System.Guid
sticky bool
Результат void

UpdateMediaObjectForPost() публичный Метод

public UpdateMediaObjectForPost ( System.Guid postId, Post mediaObject ) : void
postId System.Guid
mediaObject Post
Результат void

UpdateNumberOfCommentsForPost() публичный Метод

public UpdateNumberOfCommentsForPost ( System.Guid postId, int numberOfComments ) : void
postId System.Guid
numberOfComments int
Результат void

UpdateNumberOfReportsForPost() публичный Метод

public UpdateNumberOfReportsForPost ( System.Guid postId, int numberOfReports ) : void
postId System.Guid
numberOfReports int
Результат void

UpdatePost() публичный Метод

public UpdatePost ( Post post ) : void
post Post
Результат void

UpdatePostVotes() публичный Метод

public UpdatePostVotes ( System.Guid postId, int upVotes, int downVotes ) : void
postId System.Guid
upVotes int
downVotes int
Результат void

UpdateThumbnailForPost() публичный Метод

public UpdateThumbnailForPost ( System.Guid postId, string thumbnail ) : void
postId System.Guid
thumbnail string
Результат void