C# Класс Jibbr.ViewModels.ChatSessionViewModel

Наследование: Caliburn.Micro.ReactiveUI.ReactiveScreen
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ChatSessionViewModel ( AccountViewModel account, JIDViewModel target ) : System
OnChatState ( agsXMPP chatState ) : void
OnMessage ( ChatMessage message ) : void

Called when our account receives a message for us. Locks our messages in case we try to send one at the same time.

SendMessage ( ) : void

Send a message to our target

TrySendMessage ( System.Windows.Input.KeyEventArgs keyArgs ) : void

Used for 'Enter' keypress. Can't use SendMessage, because CanSendMessage returns false, disabling the textbox, and locking us out.

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

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

public ChatSessionViewModel ( AccountViewModel account, JIDViewModel target ) : System
account AccountViewModel
target JIDViewModel
Результат System

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

public OnChatState ( agsXMPP chatState ) : void
chatState agsXMPP
Результат void

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

Called when our account receives a message for us. Locks our messages in case we try to send one at the same time.
public OnMessage ( ChatMessage message ) : void
message Jibbr.Models.ChatMessage The messages received from target
Результат void

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

Send a message to our target
public SendMessage ( ) : void
Результат void

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

Used for 'Enter' keypress. Can't use SendMessage, because CanSendMessage returns false, disabling the textbox, and locking us out.
public TrySendMessage ( System.Windows.Input.KeyEventArgs keyArgs ) : void
keyArgs System.Windows.Input.KeyEventArgs
Результат void