Exemple #1
0
        private void Wa_OnGetMessage(WhatsAppApi.Helper.ProtocolTreeNode messageNode, string from, string id, string name, string message, bool receipt_sent)
        {
            UpdateTextMessage text = UpdateTextData;

            if (webBrowser.InvokeRequired)
            {
                Invoke(text, webBrowser, string.Format("{0}:{1}", fullName, message));
            }
        }
Exemple #2
0
 void OnTextMessageUpdated(UpdateTextMessage msg)
 {
     TextMessageUpdated(this, new TextMessageUpdatedEventArgs()
     {
         Id        = msg.Id,
         SessionID = msg.SessionId,
         Sender    = msg.Sender,
         Message   = msg.Message
     });
     Trace.WriteLine("Message updated by: " + msg.Sender + ", sessionId= " + msg.SessionId);
 }