public static SmsBind ToSmsBindObject(string msg, string state, int type) { SmsBind bind = new SmsBind(); bind.setContent(msg); bind.setType(type); bind.setSendphone("10086"); bind.setReceivephone("15852744042"); bind.setState(state); bind.setCreatetime(DateTime.Now); return bind; }
public static SmsBind ToSmsBindObject(IMessage message, String state) { String name = message.Properties.GetString("name"); String phone = message.Properties.GetString("phone"); String address = message.Properties.GetString("address"); String idNumber = message.Properties.GetString("idNumber"); String msg = "ZLDJ#" + phone + "#" + idNumber + "#" + name + "#" + address; SmsBind vo = new SmsBind(); vo.setContent(msg); vo.setType(2); vo.setSendphone("10086"); vo.setReceivephone("15852744042"); vo.setState(state); vo.setCreatetime(DateTime.Now); return vo; }