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

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

Méthodes publiques

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

public ApprovePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
Résultat void

GetPostById() public méthode

public GetPostById ( System.Guid id ) : Post
id System.Guid
Résultat Post

GetPosts() public méthode

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

GetReportedPosts() public méthode

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

GetUnmoderatedPosts() public méthode

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

InsertPost() public méthode

public InsertPost ( Post post ) : void
post Post
Résultat void

PostService() public méthode

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

QueryPosts() public méthode

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

RemovePost() public méthode

public RemovePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
Résultat void

SetIgnoreReportsForPost() public méthode

public SetIgnoreReportsForPost ( System.Guid postId, bool ignoreReports ) : void
postId System.Guid
ignoreReports bool
Résultat void

SetStickyForPost() public méthode

public SetStickyForPost ( System.Guid postId, bool sticky ) : void
postId System.Guid
sticky bool
Résultat void

UpdateMediaObjectForPost() public méthode

public UpdateMediaObjectForPost ( System.Guid postId, Post mediaObject ) : void
postId System.Guid
mediaObject Post
Résultat void

UpdateNumberOfCommentsForPost() public méthode

public UpdateNumberOfCommentsForPost ( System.Guid postId, int numberOfComments ) : void
postId System.Guid
numberOfComments int
Résultat void

UpdateNumberOfReportsForPost() public méthode

public UpdateNumberOfReportsForPost ( System.Guid postId, int numberOfReports ) : void
postId System.Guid
numberOfReports int
Résultat void

UpdatePost() public méthode

public UpdatePost ( Post post ) : void
post Post
Résultat void

UpdatePostVotes() public méthode

public UpdatePostVotes ( System.Guid postId, int upVotes, int downVotes ) : void
postId System.Guid
upVotes int
downVotes int
Résultat void

UpdateThumbnailForPost() public méthode

public UpdateThumbnailForPost ( System.Guid postId, string thumbnail ) : void
postId System.Guid
thumbnail string
Résultat void