C# 클래스 Jibbr.ViewModels.ChatSessionViewModel

상속: Caliburn.Micro.ReactiveUI.ReactiveScreen
파일 보기 프로젝트 열기: Nimgoble/Jibbr 1 사용 예제들

공개 메소드들

메소드 설명
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