private void HandleSendMessageCommand(object parameter)
        {
            // TODo: SEND MESSAGE
            var message = new MessageModel()
                              {
                                  Sender = CurrentUserInfo,
                                  Conversation = CurrentConversation,
                                  Content = MessageToSend
                              };

            MessagePersister.Send(CurrentUserInfo.SessionKey, message);
            pubnub.Publish(channelName, "New message");
            this.MessageToSend = "";
            OnPropertyChanged("MessageToSend");
        }
 public static void Send(string sessionKey, MessageModel msg)
 {
     headers[HttpRequester.sessionKeyHeaderName] = sessionKey;
     HttpRequester.Post(baseUrl + "send", msg, headers);
 }