Ejemplo n.º 1
0
        public static PlainSMS CreatePlainSMS(SMSMessage message, SMSNumber number)
        {
            PlainSMS sms = new PlainSMS()
            {
                ID            = message.ID,
                AccountID     = message.AccountID,
                Channel       = message.Channel,
                Content       = message.Content,
                Numbers       = number.Numbers,
                SplitNumber   = message.SplitNumber,
                FeeTotalCount = message.SplitNumber * number.NumberCount,
                NumberCount   = number.NumberCount,
                OperatorType  = number.Operator,
                SendTime      = message.SendTime,
                Signature     = "【" + message.Signature + "】",
                SMSLevel      = message.SMSLevel,
                SMSType       = message.SMSType,
                SPNumber      = message.SPNumber
            };

            return(sms);
        }
Ejemplo n.º 2
0
        public static PlainSMS CreatePlainSMS(SMSMessage message, List <string> numbers, OperatorType Op)
        {
            PlainSMS sms = new PlainSMS()
            {
                ID            = message.ID,
                AccountID     = message.AccountID,
                Channel       = message.Channel,
                Content       = message.Content,
                Numbers       = string.Join(",", numbers),
                SplitNumber   = message.SplitNumber,
                FeeTotalCount = message.SplitNumber * numbers.Count,
                NumberCount   = numbers.Count,
                OperatorType  = Op,
                SendTime      = message.SendTime,
                Signature     = "【" + message.Signature + "】",
                SMSLevel      = message.SMSLevel,
                SMSType       = message.SMSType,
                SPNumber      = message.SPNumber
            };

            return(sms);
        }
Ejemplo n.º 3
0
 public ReportStatistics(SMSMessage sms)
 {
     this.ID               = sms.ID;
     this.AccountID        = sms.AccountID;
     this.Channel          = sms.Channel;
     this.Content          = sms.Content;
     this.FailureCount     = sms.FailureCount;
     this.FeeBack          = sms.FeeBack;
     this.FeeBackReason    = sms.FeeBackReason;
     this.FeeTotalCount    = sms.FeeTotalCount;
     this.FilterType       = sms.FilterType;
     this.NumberCount      = sms.NumberCount;
     this.SendCount        = sms.NumberCount;
     this.SendTime         = sms.SendTime;
     this.Signature        = sms.Signature;
     this.SMSLevel         = sms.SMSLevel;
     this.SMSTimer         = sms.SMSTimer;
     this.SMSType          = sms.SMSType;
     this.Source           = sms.Source;
     this.SplitNumber      = sms.SplitNumber;
     this.SPNumber         = sms.SPNumber;
     this.StatusReportType = sms.StatusReportType;
 }