@Override public void setNetworkId(int val) { sms.getSmsSet().setNetworkId(val); }
@Override public void updateMessageNetworkId(MProcMessage message, int newNetworkId) { MProcMessageImpl msg = (MProcMessageImpl) message; Sms sms = msg.getSmsContent(); sms.getSmsSet().setNetworkId(newNetworkId); 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.setDestAddrNpi(addrNpi); smsSet0.setDestAddrTon(addrTon); smsSet0.setNetworkId(networkId);
backSmsSet.setDestAddrTon(ta.getAddrTon()); if (origNetworkIdForReceipts) backSmsSet.setNetworkId(sms.getOrigNetworkId()); else backSmsSet.setNetworkId(sms.getSmsSet().getNetworkId()); backSmsSet.addSms(smsStatusReport);
smsSet.setNetworkId(row.getInt(Schema.COLUMN_NETWORK_ID)); } else { String tagId = row.getString(Schema.COLUMN_TARGET_ID); try { int networkId = Integer.parseInt(s1); smsSet.setNetworkId(networkId); } catch (Exception e) {
smsSet.setDestAddrTon(1); smsSet.setNetworkId(0); smsSet.setCorrelationId(null); smsSet.addSms(sms);
smsSet.setNetworkId(sms0.getSmsSet().getNetworkId()); smsSet.addSms(sms);