public StlPageComments(string stlPageCommentsElement, PageInfo pageInfo, ContextInfo contextInfo, bool isXmlContent) { this.pageInfo = pageInfo; this.contextInfo = contextInfo; var xmlDocument = StlParserUtility.GetXmlDocument(stlPageCommentsElement, isXmlContent); node = xmlDocument.DocumentElement; node = node.FirstChild; displayInfo = ContentsDisplayInfo.GetContentsDisplayInfoByXmlNode(node, pageInfo, this.contextInfo, EContextType.Comment); dataSet = StlDataUtility.GetPageCommentsDataSet(pageInfo.PublishmentSystemId, contextInfo.ChannelID, contextInfo.ContentID, null, displayInfo.StartNum, displayInfo.TotalNum, displayInfo.IsRecommend, displayInfo.OrderByString, displayInfo.Where); }
public StlPageComments(string stlPageCommentsElement, PageInfo pageInfo, ContextInfo contextInfo, bool isXmlContent) { _pageInfo = pageInfo; _contextInfo = contextInfo; var xmlDocument = StlParserUtility.GetXmlDocument(stlPageCommentsElement, isXmlContent); _node = xmlDocument.DocumentElement; _node = _node?.FirstChild; ListInfo = ListInfo.GetListInfoByXmlNode(_node, pageInfo, _contextInfo, EContextType.Comment); _dataSet = StlDataUtility.GetPageCommentsDataSet(pageInfo.PublishmentSystemId, contextInfo.ChannelId, contextInfo.ContentId, null, ListInfo.StartNum, ListInfo.TotalNum, ListInfo.IsRecommend, ListInfo.OrderByString, ListInfo.Where); }