use of com.zx.sms.codec.cmpp.msg.DefaultHeader in project SMSGate by Lihuanghe.
the class TestCmppDeliverRequestMessageCodec method createTestReq.
private CmppDeliverRequestMessage createTestReq(String content) {
Header header = new DefaultHeader();
// 取时间,用来查看编码解码时间
CmppDeliverRequestMessage msg = new CmppDeliverRequestMessage(header);
msg.setDestId("13800138000");
msg.setLinkid("0000");
// 70个汉字
msg.setMsgContent(content);
msg.setMsgId(new MsgId());
msg.setServiceid("10086");
msg.setSrcterminalId("13800138000");
msg.setSrcterminalType((short) 1);
header.setSequenceId((int) System.nanoTime());
return msg;
}
Aggregations