C# Class Jibbr.ViewModels.ChatSessionViewModel

Inheritance: Caliburn.Micro.ReactiveUI.ReactiveScreen
Afficher le fichier Open project: Nimgoble/Jibbr Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public ChatSessionViewModel ( AccountViewModel account, JIDViewModel target ) : System
account AccountViewModel
target JIDViewModel
Résultat System

OnChatState() public méthode

public OnChatState ( agsXMPP chatState ) : void
chatState agsXMPP
Résultat void

OnMessage() public méthode

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
Résultat void

SendMessage() public méthode

Send a message to our target
public SendMessage ( ) : void
Résultat void

TrySendMessage() public méthode

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
Résultat void