Esempio n. 1
0
 public static LikesInfo GetLikesInfo(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         LikesInfo l = new LikesInfo();
         l.CanLike    = XmlUtils.Bool("can_like");
         l.CanPublish = XmlUtils.Bool("can_publish");
         l.Count      = XmlUtils.Int("count");
         l.UserLikes  = XmlUtils.Int("user_likes");
         return(l);
     }
     return(null);
 }
Esempio n. 2
0
 public static LikesInfo GetLikesInfo(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         LikesInfo l = new LikesInfo();
         l.CanLike = XmlUtils.Bool("can_like");
         l.CanPublish = XmlUtils.Bool("can_publish");
         l.Count = XmlUtils.Int("count");
         l.UserLikes = XmlUtils.Int("user_likes");
         return l;
     }
     return null;
 }