Пример #1
0
        public void PublicRetrieveAllSms()
        {
            smsSignalWire objSignalWire = new smsSignalWire();

            objSignalWire.RetrieveAllSms();
            Console.ReadKey();
        }
Пример #2
0
        public void PublicSendSms(ref int pStatus, string pFrom, string pTo, string pBodyText)
        {
            if (pFrom.Length != 10 || !pFrom.All(char.IsDigit))
            {
                Console.WriteLine("ERROR: pFrom must be a US phone number of length 10");
                pStatus = errorFrom;
                return;
            }
            else if (pTo.Length != 10 || !pTo.All(char.IsDigit))
            {
                Console.WriteLine("ERROR: pTo must be a US phone number of length 10");
                pStatus = errorTo;
                return;
            }
            else if (pBodyText.Length <= 1)
            {
                Console.WriteLine("ERROR: pBodyText must be longer than 1 character");
                pStatus = errorBodyText;
                return;
            }

            //smsTwilio objTwilio = new smsTwilio();
            //objTwilio.PublicSendSms(ref pStatus, pFrom, pTo, pBodyText);
            smsSignalWire objSignalWire = new smsSignalWire();

            objSignalWire.PublicSendSms(ref pStatus, pFrom, pTo, pBodyText);
            Console.ReadKey();
        }
Пример #3
0
        public void PublicTestSms()
        {
            smsSignalWire objSignalWire = new smsSignalWire();

            objSignalWire.testSms();
            Console.ReadKey();
        }