C# Class Jibbr.ViewModels.ChatSessionViewModel

Inheritance: Caliburn.Micro.ReactiveUI.ReactiveScreen
Mostrar archivo Open project: Nimgoble/Jibbr Class Usage Examples

Public Methods

Method Description
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.

Method Details

ChatSessionViewModel() public method

public ChatSessionViewModel ( AccountViewModel account, JIDViewModel target ) : System
account AccountViewModel
target JIDViewModel
return System

OnChatState() public method

public OnChatState ( agsXMPP chatState ) : void
chatState agsXMPP
return void

OnMessage() public method

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
return void

SendMessage() public method

Send a message to our target
public SendMessage ( ) : void
return void

TrySendMessage() public method

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
return void