Example #1
0
        /// <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);
        }
Example #2
0
 /// <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;
 }