Beispiel #1
0
        public static ReceiveSms ReceiveSms(string sms)
        {
            var result = new ReceiveSms
                             {
                                 ReceiveTime = FpdUdecoding.GetDataTime(sms),
                                 SendMobile = FpdUdecoding.GetTelphone(sms)
                             };

            if (FpdUdecoding.IsPdu(sms))
            {
                result.Content = FpdUdecoding.GetContent(sms);
            }
            else
            {
                result.Content = FpdUdecoding.GetTextContent(sms);
            }
            return result;
        }
Beispiel #2
0
        public static ReceiveSms ReceiveSms(string sms)
        {
            var result = new ReceiveSms
            {
                ReceiveTime = FpdUdecoding.GetDataTime(sms),
                SendMobile  = FpdUdecoding.GetTelphone(sms)
            };

            if (FpdUdecoding.IsPdu(sms))
            {
                result.Content = FpdUdecoding.GetContent(sms);
            }
            else
            {
                result.Content = FpdUdecoding.GetTextContent(sms);
            }
            return(result);
        }