/// <summary> /// 获取图文响应消息 /// </summary> /// <returns></returns> public RepNewsMessage GetNewsResponse(IEnumerable <NewsItem> data = null) { var result = new RepNewsMessage(); FillRepMsg(result); if (data != null) { var msgData = new NewsMsgData(); msgData.Items.AddRange(data); result.Data = msgData; } return(result); }
/// <summary> /// 获取图文响应消息 /// </summary> /// <returns></returns> public RepNewsMessage GetNewsResponse(IEnumerable<NewsItem> data = null) { var result = new RepNewsMessage(); FillRepMsg(result); if (data != null) { var msgData = new NewsMsgData(); msgData.Items.AddRange(data); result.Data = msgData; } return result; }