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

Inheritance: IPostService
Mostra file Open project: skimur/skimur

Public Methods

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

Method Details

ApprovePost() public method

public ApprovePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
return void

GetPostById() public method

public GetPostById ( System.Guid id ) : Post
id System.Guid
return Post

GetPosts() public method

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

GetReportedPosts() public method

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

GetUnmoderatedPosts() public method

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

InsertPost() public method

public InsertPost ( Post post ) : void
post Post
return void

PostService() public method

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

QueryPosts() public method

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

RemovePost() public method

public RemovePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
return void

SetIgnoreReportsForPost() public method

public SetIgnoreReportsForPost ( System.Guid postId, bool ignoreReports ) : void
postId System.Guid
ignoreReports bool
return void

SetStickyForPost() public method

public SetStickyForPost ( System.Guid postId, bool sticky ) : void
postId System.Guid
sticky bool
return void

UpdateMediaObjectForPost() public method

public UpdateMediaObjectForPost ( System.Guid postId, Post mediaObject ) : void
postId System.Guid
mediaObject Post
return void

UpdateNumberOfCommentsForPost() public method

public UpdateNumberOfCommentsForPost ( System.Guid postId, int numberOfComments ) : void
postId System.Guid
numberOfComments int
return void

UpdateNumberOfReportsForPost() public method

public UpdateNumberOfReportsForPost ( System.Guid postId, int numberOfReports ) : void
postId System.Guid
numberOfReports int
return void

UpdatePost() public method

public UpdatePost ( Post post ) : void
post Post
return void

UpdatePostVotes() public method

public UpdatePostVotes ( System.Guid postId, int upVotes, int downVotes ) : void
postId System.Guid
upVotes int
downVotes int
return void

UpdateThumbnailForPost() public method

public UpdateThumbnailForPost ( System.Guid postId, string thumbnail ) : void
postId System.Guid
thumbnail string
return void