Exemple #1
0
        private void SendMessage(tbl_Message Message)
        {
            var jid = _xmppOpenfire.GetJid(Message.MsgTo, "PC");

            _xmppOpenfire.SendMessage(jid, Message);
            jid = _xmppOpenfire.GetJid(Message.MsgTo, "MOBILE");
            _xmppOpenfire.SendMessage(jid, Message);
        }
Exemple #2
0
 public void Execute(tbl_Message Message)
 {
     try
     {
         if (Message.MsgBody["RESOURCE"].ToUpper() == "MOBILE")
         {
             var jid = _xmppOpenfire.GetJid(Message.MsgFrom, "PC");
             _xmppOpenfire.SendMessage(jid, Message);
             jid = _xmppOpenfire.GetJid(Message.MsgTo, "PC");
             _xmppOpenfire.SendMessage(jid, Message);
         }
         else
         {
             var jid = _xmppOpenfire.GetJid(Message.MsgFrom, "MOBILE");
             _xmppOpenfire.SendMessage(jid, Message);
             jid = _xmppOpenfire.GetJid(Message.MsgTo, "MOBILE");
             _xmppOpenfire.SendMessage(jid, Message);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }