C# Class GSoft.Dynamite.Examples.ViewModels.WallViewModel

View model for the Wall web part
显示文件 Open project: GSoft-SharePoint/Dynamite-2010

Public Methods

Method Description
AddPost ( string message ) : WallPost

Creates a new post on the wall

AddReply ( string message, int parentPostId ) : WallReply

Creates a new reply to a wall post

WallViewModel ( IWallPostRepository wallPostRepository, IWallReplyRepository wallReplyRepository, ITaxonomyService taxonomyService, IResourceLocator resourceLocator, ILogger log ) : System

Constructor to inject the view model dependencies

Private Methods

Method Description
AddTags ( string message, TaxonomyValueCollection taxonomyValueCollection ) : void

Method Details

AddPost() public method

Creates a new post on the wall
public AddPost ( string message ) : WallPost
message string Text content of the post
return GSoft.Dynamite.Examples.Entities.WallPost

AddReply() public method

Creates a new reply to a wall post
public AddReply ( string message, int parentPostId ) : WallReply
message string Text content of the reply
parentPostId int Id of the parent post
return GSoft.Dynamite.Examples.Entities.WallReply

WallViewModel() public method

Constructor to inject the view model dependencies
public WallViewModel ( IWallPostRepository wallPostRepository, IWallReplyRepository wallReplyRepository, ITaxonomyService taxonomyService, IResourceLocator resourceLocator, ILogger log ) : System
wallPostRepository IWallPostRepository Wall post data access
wallReplyRepository IWallReplyRepository Wall reply data access
taxonomyService ITaxonomyService Taxonomy service
resourceLocator IResourceLocator Resource utility
log ILogger Logging utility
return System