Exemple #1
0
 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;
 }
Exemple #2
0
 /// <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());
 }
Exemple #3
0
 public IMSysLog(IMMessageType vType, string content)
     : this("SYS", AutoID.getAutoID(), vType, content, DateTime.Now)
 {
 }