/// <summary> /// 构造函数 /// </summary> /// <param name="id"></param> /// <param name="type"></param> /// <param name="content"></param> /// <param name="time"></param> public IMSysLog(string vOpenID, string cMessageID, IMMessageType vType, string content, DateTime time) { ID = cMessageID; MSG_TYPE = vType; MSG_TEXT = content; CreateDateTime = time; }
/// <summary> /// 创建消息 /// </summary> /// <param name="message">消息</param> /// <param name="type">消息类型</param> /// <returns></returns> public static IMToClientMessage <TMessage> Create(TMessage message, IMMessageType type) { return(new IMToClientMessage <TMessage>() { Message = message, Type = type }); }
public IMSysLog(IMMessageType vType, string content) : this("SYS", AutoID.getAutoID(), vType, content, DateTime.Now) { }