📄 mtbeantomtinfo.java
字号:
/*
* Created on 2004-11-29
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.gctech.sms.tj;
import com.gctech.sms.msg.MTInfo;
/**
* <p>Title:</p>
* <p>Description:</p>
* <p>Copyright: Copyright (c) Gctech 2004-11-29</p>
* <p>Company: 吉芙德资讯有限公司</p>
*
* @version 1.0
* @author liyi
*
*/
public class MTBeanToMTInfo {
public static MTInfo convertor(MTBean bean){
MTInfo info = new MTInfo();
info.content = bean.getContent();
info.bMsgFmt = (byte)Integer.parseInt(bean.getMsgFormat());
info.gateway = Integer.parseInt(bean.getGateway());
info.ServiceID = bean.getProduct();
info.bSubType = (byte)Integer.parseInt(bean.getSubType());
info.FeeType = bean.getFeeType();
info.FeeCode = bean.getFeeCode();
info.bFeeUserType = (byte)Integer.parseInt(bean.getFeeUserType());
info.sDestPhone = bean.getDestTermID();
info.srcPhone = bean.getSrcTermID();
info.FeeterminalId = bean.getChargeTermID();
return info;
}
public static void main(String[] args) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -