MessageViewModel - конструктор
Пространство имён: Tessa.UI.Controls.ForumsСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
public MessageViewModel(
ForumViewModel forumViewModel,
MessageModelBase model,
UserStatusModel userStat,
bool fromTopicControl = false,
bool isVisibleEdit = false,
bool isVisibleReply = false,
Func<MessageViewModelBase, CancellationToken, Task> replyActionAsync = null,
Func<MessageViewModelBase, CancellationToken, Task> editActionAsync = null,
Func<MessageViewModelBase, CancellationToken, Task> getLinkActionAsync = null
)
Public Sub New (
forumViewModel As ForumViewModel,
model As MessageModelBase,
userStat As UserStatusModel,
Optional fromTopicControl As Boolean = false,
Optional isVisibleEdit As Boolean = false,
Optional isVisibleReply As Boolean = false,
Optional replyActionAsync As Func(Of MessageViewModelBase, CancellationToken, Task) = Nothing,
Optional editActionAsync As Func(Of MessageViewModelBase, CancellationToken, Task) = Nothing,
Optional getLinkActionAsync As Func(Of MessageViewModelBase, CancellationToken, Task) = Nothing
)
public:
MessageViewModel(
ForumViewModel^ forumViewModel,
MessageModelBase^ model,
UserStatusModel^ userStat,
bool fromTopicControl = false,
bool isVisibleEdit = false,
bool isVisibleReply = false,
Func<MessageViewModelBase^, CancellationToken, Task^>^ replyActionAsync = nullptr,
Func<MessageViewModelBase^, CancellationToken, Task^>^ editActionAsync = nullptr,
Func<MessageViewModelBase^, CancellationToken, Task^>^ getLinkActionAsync = nullptr
)
new :
forumViewModel : ForumViewModel *
model : MessageModelBase *
userStat : UserStatusModel *
?fromTopicControl : bool *
?isVisibleEdit : bool *
?isVisibleReply : bool *
?replyActionAsync : Func<MessageViewModelBase, CancellationToken, Task> *
?editActionAsync : Func<MessageViewModelBase, CancellationToken, Task> *
?getLinkActionAsync : Func<MessageViewModelBase, CancellationToken, Task>
(* Defaults:
let _fromTopicControl = defaultArg fromTopicControl false
let _isVisibleEdit = defaultArg isVisibleEdit false
let _isVisibleReply = defaultArg isVisibleReply false
let _replyActionAsync = defaultArg replyActionAsync null
let _editActionAsync = defaultArg editActionAsync null
let _getLinkActionAsync = defaultArg getLinkActionAsync null
*)
-> MessageViewModel
Параметры
- forumViewModel ForumViewModel
-
- model MessageModelBase
-
- userStat UserStatusModel
-
- fromTopicControl Boolean (Optional)
-
- isVisibleEdit Boolean (Optional)
-
- isVisibleReply Boolean (Optional)
-
- replyActionAsync FuncMessageViewModelBase, CancellationToken, Task (Optional)
-
- editActionAsync FuncMessageViewModelBase, CancellationToken, Task (Optional)
-
- getLinkActionAsync FuncMessageViewModelBase, CancellationToken, Task (Optional)
-