Пример #1
0
        public void SendSms(Contact contact, string smsText, TextBoxOutput output, int simNum)
        {
            var msg = new SmsMessage()
            {
                SendTo = contact?.Name, Text = smsText, SentTime = DateTime.Now, Status = MsgStatus.Sent, Sender = phone?.ActiveSimCard.SmsReceiver
            };

            phone.UseComponent <Memory>().Add <SmsMessage>(msg);

            contact.SmsReceiver[simNum](msg);

            output?.WriteLine(msg.ToString());
        }
Пример #2
0
 public void Send(SmsMessage message)
 {
     XDK.PostFromExtension(API_RESOURCE, message.ToString());
 }