C# Class Skimur.Web.Controllers.PostsController

Inheritance: BaseController
Show file Open project: skimur/skimur

Public Methods

Method Description
AnnouncementPosts ( ) : Microsoft.AspNet.Mvc.ActionResult
Frontpage ( PostsSortBy sort, PostsTimeFilter time, int pageNumber, int pageSize ) : Microsoft.AspNet.Mvc.ActionResult
Post ( string subName, System.Guid id, CommentSortBy commentsSort, System.Guid commentId = null, int limit = 100, int context ) : Microsoft.AspNet.Mvc.ActionResult
Posts ( string subName, PostsSortBy sort, PostsTimeFilter time, int pageNumber, int pageSize ) : Microsoft.AspNet.Mvc.ActionResult
PostsController ( ISubDao subDao, ISubWrapper subWrapper, IPostDao postDao, IPostWrapper postWrapper, IUserContext userContext, ICommandBus commandBus, IContextService contextService, ICommentTreeContextBuilder commentTreeContextBuilder, ICommentDao commentDao, ISubActivityDao subActivityDao, ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder ) : System

Private Methods

Method Description
Approve ( System.Guid postId ) : Microsoft.AspNet.Mvc.ActionResult
Create ( CreatePostModel model, string subName = null ) : Microsoft.AspNet.Mvc.ActionResult
Create ( string subName = null, string type = null ) : Microsoft.AspNet.Mvc.ActionResult
Delete ( System.Guid postId, string reason ) : Microsoft.AspNet.Mvc.ActionResult
Edit ( EditPostModel model ) : Microsoft.AspNet.Mvc.ActionResult
Remove ( System.Guid postId ) : Microsoft.AspNet.Mvc.ActionResult
ToggleNsfw ( System.Guid postId, bool nsfw ) : Microsoft.AspNet.Mvc.ActionResult
ToggleSticky ( System.Guid postId, bool sticky ) : Microsoft.AspNet.Mvc.ActionResult
Unmoderated ( string subName ) : Microsoft.AspNet.Mvc.ActionResult

Method Details

AnnouncementPosts() public method

public AnnouncementPosts ( ) : Microsoft.AspNet.Mvc.ActionResult
return Microsoft.AspNet.Mvc.ActionResult

Frontpage() public method

public Frontpage ( PostsSortBy sort, PostsTimeFilter time, int pageNumber, int pageSize ) : Microsoft.AspNet.Mvc.ActionResult
sort PostsSortBy
time PostsTimeFilter
pageNumber int
pageSize int
return Microsoft.AspNet.Mvc.ActionResult

Post() public method

public Post ( string subName, System.Guid id, CommentSortBy commentsSort, System.Guid commentId = null, int limit = 100, int context ) : Microsoft.AspNet.Mvc.ActionResult
subName string
id System.Guid
commentsSort CommentSortBy
commentId System.Guid
limit int
context int
return Microsoft.AspNet.Mvc.ActionResult

Posts() public method

public Posts ( string subName, PostsSortBy sort, PostsTimeFilter time, int pageNumber, int pageSize ) : Microsoft.AspNet.Mvc.ActionResult
subName string
sort PostsSortBy
time PostsTimeFilter
pageNumber int
pageSize int
return Microsoft.AspNet.Mvc.ActionResult

PostsController() public method

public PostsController ( ISubDao subDao, ISubWrapper subWrapper, IPostDao postDao, IPostWrapper postWrapper, IUserContext userContext, ICommandBus commandBus, IContextService contextService, ICommentTreeContextBuilder commentTreeContextBuilder, ICommentDao commentDao, ISubActivityDao subActivityDao, ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder ) : System
subDao ISubDao
subWrapper ISubWrapper
postDao IPostDao
postWrapper IPostWrapper
userContext IUserContext
commandBus ICommandBus
contextService IContextService
commentTreeContextBuilder ICommentTreeContextBuilder
commentDao ICommentDao
subActivityDao ISubActivityDao
commentNodeHierarchyBuilder ICommentNodeHierarchyBuilder
return System