public IMMessage(DateTime dateTime, string cFromUser, string cMsgType, string cMsgBody) { this.ID = AutoID.getAutoID(); this.CreateDateTime = dateTime; this.OPENID = cFromUser; this.MSG_TYPE = cMsgType; this.MSG_TEXT = cMsgBody; }
/// <summary> /// 构造函数 /// </summary> /// <param name="id"></param> /// <param name="type"></param> /// <param name="content"></param> /// <param name="time"></param> public IMRecvMSG(String vType, String cWX_ID, String cOPENID, string vContent) { ID = AutoID.getAutoID(); WX_ID = cWX_ID; OPENID = cOPENID; MSG_TYPE = vType; MSG_TEXT = vContent; MSG_TIME = StringEx.getString(DateUtils.getDayTimeNum()); }
public IMSysLog(IMMessageType vType, string content) : this("SYS", AutoID.getAutoID(), vType, content, DateTime.Now) { }