C# Класс GSoft.Dynamite.Examples.ViewModels.WallViewModel

View model for the Wall web part
Показать файл Открыть проект

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

Метод Описание
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

Приватные методы

Метод Описание
AddTags ( string message, TaxonomyValueCollection taxonomyValueCollection ) : void

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

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

Creates a new post on the wall
public AddPost ( string message ) : WallPost
message string Text content of the post
Результат GSoft.Dynamite.Examples.Entities.WallPost

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

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
Результат GSoft.Dynamite.Examples.Entities.WallReply

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

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
Результат System