Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }