예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 public static CommentsInfo GetCommentsInfo(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         CommentsInfo c = new CommentsInfo();
         c.Count      = XmlUtils.Int("count");
         c.CanComment = XmlUtils.Bool("can_post");
         return(c);
     }
     return(null);
 }
예제 #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 public static CommentsInfo GetCommentsInfo(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         CommentsInfo c = new CommentsInfo();
         c.Count = XmlUtils.Int("count");
         c.CanComment = XmlUtils.Bool("can_post");
         return c;
     }
     return null;
 }