@Override public void setDestAddrTon(int val) throws MProcRuleException { MProcUtility.checkDestAddrTon(val); sms.getSmsSet().setDestAddrTon(val); }
@Override public void updateMessageDestAddrTon(MProcMessage message, int newDestTon) throws MProcRuleException { MProcUtility.checkDestAddrTon(newDestTon); MProcMessageImpl msg = (MProcMessageImpl) message; Sms sms = msg.getSmsContent(); sms.getSmsSet().setDestAddrTon(newDestTon); sms.getSmsSet().setCorrelationId(null); }
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); }
smsSet0.setDestAddr(addr); smsSet0.setDestAddrNpi(addrNpi); smsSet0.setDestAddrTon(addrTon); smsSet0.setNetworkId(networkId);
smsSet.setDestAddr("222"); smsSet.setDestAddrNpi(1); smsSet.setDestAddrTon(1);
smsSet.setDestAddrTon(destAddrTon); smsSet.setDestAddrNpi(destAddrNpi);
backSmsSet.setDestAddr(ta.getAddr()); backSmsSet.setDestAddrNpi(ta.getAddrNpi()); backSmsSet.setDestAddrTon(ta.getAddrTon()); if (origNetworkIdForReceipts) backSmsSet.setNetworkId(sms.getOrigNetworkId());
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()); smsSet.setCorrelationId(sms0.getSmsSet().getCorrelationId());