public void MessageSend(string currentMessage, string loginTo) { var msgContainer = new TextMsgRequest(_connectionServiceController.Login, loginTo, currentMessage); var mr = new MessageRequest(msgContainer, MsgType.PersonalMessage); _currentTransport?.Send(mr); }
public MessageReceivedEventArgs(TextMsgRequest msgRequest) { ToClientName = msgRequest.To; Message = msgRequest.Message; FromClientName = msgRequest.From; Date = msgRequest.Date; Status = msgRequest.Status; }