Exemplo n.º 1
0
 private void Buzz()
 {
     if (analyzer == null)
     {
         return;
     }
     RobotCore.SendEMail("*****@*****.**", this.cmd.Para, string.Empty);
     analyzer.Send("Buzz已发送!");
 }
Exemplo n.º 2
0
        private void fetion_AddBuddyApplication(object sender, ConversationArgs e)
        {
            XDocument doc    = XDocument.Parse(e.Text);
            string    uri    = doc.Element("events").Element("event").Element("application").Attribute("uri").Value;
            string    desc   = doc.Element("events").Element("event").Element("application").Attribute("desc").Value;
            string    userid = doc.Element("events").Element("event").Element("application").Attribute("user-id").Value;

            fetion.SendToSelf(uri + "添加你为好友");
            fetion.AgreeAddBuddy(new SipUri(uri), userid);

            RobotCore.SendEMail("HaozesFx Robot Message", uri.ToString() + " 添加你的机器人为好友,机器人已自动添加他为好友");
        }
Exemplo n.º 3
0
 public void Formward(string msg)
 {
     RobotCore.SendEMail(string.Empty, msg);
 }
Exemplo n.º 4
0
 public void Formward(string mailContent)
 {
     mailContent = string.Format("SipUrl:{0} Display Name:{1}" + Environment.NewLine + "says:{2}", contact.Uri.ToString(), contact.DisplayName, mailContent);
     RobotCore.SendEMail(string.Empty, mailContent);
 }