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