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; }
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); }