@Override public void setDestAddr(String val) throws MProcRuleException { MProcUtility.checkDestAddr(val); sms.getSmsSet().setDestAddr(val); }
public static Sms createReceiptSms(Sms sms, boolean delivered, TargetAddress ta, boolean origNetworkIdForReceipts, String extraString, boolean tempFailure) { Sms receipt = createReceiptSms(sms, delivered, extraString, tempFailure); SmsSet backSmsSet = new SmsSet(); backSmsSet.setDestAddr(ta.getAddr()); backSmsSet.setDestAddrNpi(ta.getAddrNpi()); backSmsSet.setDestAddrTon(ta.getAddrTon()); if (origNetworkIdForReceipts) backSmsSet.setNetworkId(sms.getOrigNetworkId()); else backSmsSet.setNetworkId(sms.getSmsSet().getNetworkId()); backSmsSet.addSms(receipt); // receipt.setStored(true); return receipt; }
/** * Creating a new SmsSet for Sms * @param sms */ public static void createNewSmsSetForSms(Sms sms) { SmsSet smsSet = new SmsSet(); smsSet.setDestAddr(sms.getSmsSet().getDestAddr()); smsSet.setDestAddrNpi(sms.getSmsSet().getDestAddrNpi()); smsSet.setDestAddrTon(sms.getSmsSet().getDestAddrTon()); smsSet.setCorrelationId(sms.getSmsSet().getCorrelationId()); smsSet.setNetworkId(sms.getSmsSet().getNetworkId()); smsSet.addSms(sms); }
@Override public void updateMessageDestAddr(MProcMessage message, String newDigits) throws MProcRuleException { MProcUtility.checkDestAddr(newDigits); MProcMessageImpl msg = (MProcMessageImpl) message; Sms sms = msg.getSmsContent(); sms.getSmsSet().setDestAddr(newDigits); sms.getSmsSet().setCorrelationId(null); }
smsSet.setDestAddr("222"); smsSet.setDestAddrNpi(1); smsSet.setDestAddrTon(1);
long dueSlot = 0; SmsSet smsSet0 = new SmsSet(); smsSet0.setDestAddr(addr); smsSet0.setDestAddrNpi(addrNpi); smsSet0.setDestAddrTon(addrTon);
backSmsSet.setDestAddr(ta.getAddr()); backSmsSet.setDestAddrNpi(ta.getAddrNpi()); backSmsSet.setDestAddrTon(ta.getAddrTon());
+ sms.getDbId() + "'"); smsSet.setDestAddr(destAddr); smsSet.setDestAddrTon(destAddrTon); smsSet.setDestAddrNpi(destAddrNpi);
smsSet.setDestAddr(sms0.getSourceAddr()); smsSet.setDestAddrNpi(sms0.getSourceAddrNpi()); smsSet.setDestAddrTon(sms0.getSourceAddrTon()); } else { smsSet.setDestAddr(sms0.getSmsSet().getDestAddr()); smsSet.setDestAddrNpi(sms0.getSmsSet().getDestAddrNpi()); smsSet.setDestAddrTon(sms0.getSmsSet().getDestAddrTon());